package com.linkage.jz.bankruptcy.fragment.Project;

import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

import com.chad.library.adapter.base.BaseMultiItemQuickAdapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.google.gson.Gson;
import com.linkage.jz.bankruptcy.BankruptcyApp;
import com.linkage.jz.bankruptcy.Consts;
import com.linkage.jz.bankruptcy.R;
import com.linkage.jz.bankruptcy.activity.Project.EditManagerUserInfoActivity;
import com.linkage.jz.bankruptcy.activity.Project.ProDetailActivity;
import com.linkage.jz.bankruptcy.activity.Project.ZQUser.CreateZQFristApplyActivity;
import com.linkage.jz.bankruptcy.activity.Project.ZQUser.CreateZQOneProjectActivity;
import com.linkage.jz.bankruptcy.activity.Project.ZQUser.EditZQUserBaseInfoActivity;
import com.linkage.jz.bankruptcy.activity.Project.ZQUser.EditZQUserBaseInfo_ChangeActivity;
import com.linkage.jz.bankruptcy.activity.Project.ZQUser.EditZQUserBaseInfo_EditActivity;
import com.linkage.jz.bankruptcy.activity.Project.ZQUser.EditZQUserBaseInfo_zqActivity;
import com.linkage.jz.bankruptcy.activity.Project.ZQUser.ZQUserDetailActivity;
import com.linkage.jz.bankruptcy.activity.Project.ZQUser.ZQUserZQDetailActivity;
import com.linkage.jz.bankruptcy.adapter.FileAdapter;
import com.linkage.jz.bankruptcy.adapter.FullyGridLayoutManager;
import com.linkage.jz.bankruptcy.base.BaseCreateActivity;
import com.linkage.jz.bankruptcy.bean.MyProInfo;
import com.linkage.jz.bankruptcy.bean.ProCrDecInfo;
import com.linkage.jz.bankruptcy.bean.ProZQInfo;
import com.linkage.jz.bankruptcy.bean.ProZQUserZQInfo;
import com.linkage.jz.bankruptcy.bean.TaskAtta;
import com.linkage.jz.bankruptcy.bean.ZQUserDetailBaseInfo;
import com.linkage.jz.bankruptcy.utils.SPUtils;
import com.linkage.jz.bankruptcy.utils.SignUtil;
import com.linkage.jz.bankruptcy.utils.Utils;
import com.linkage.jz.bankruptcy.widget.BaseMessage;
import com.linkage.jz.bankruptcy.widget.CakeView;
import com.linkage.jz.bankruptcy.widget.LoginNoticeDialog;
import com.linkage.jz.bankruptcy.widget.PageView;
import com.linkage.jz.bankruptcy.widget.PublicNoticeDialog;
import com.linkage.jz.bankruptcy.widget.ShapeLoadingDialog;
import com.linkage.seapeak.base.BaseFragment;
import com.linkage.seapeak.pojo.UploadImage;
import com.linkage.seapeak.utils.CommonUtils;

import org.greenrobot.eventbus.EventBus;
import org.json.JSONException;
import org.json.JSONObject;

import java.io.IOException;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Random;

import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.FormBody;
import okhttp3.Headers;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;

import static com.linkage.jz.bankruptcy.utils.Utils.StringToLeng;

//import com.linkage.jz.bankruptcy.activity.Project.ZQUser.CreateZQFristApplyActivity;

/**
 * @author FT
 * @time 2016-07-18 16:49
 */

// JUMP
public class ProZQZQFragment extends BaseFragment {
    RecyclerView mRecyclerView;
    private ShapeLoadingDialog shapeLoadingDialog ;
    private Context context;
    private int mPage;
    public static final String MERCHANT_DETAILS_PAGE = "MERCHANT_DETAILS_PAGE";
    private DemoAdapter mAdapter;
    //    private LinearLayout ll_addflow;
    private String mProID;
    //    List<ProZQInfo> mData;
    List<ProZQUserZQInfo> mData;
    private Boolean editflag;
    private int subType = 1;
    private static MyProInfo myProInfo;

    private RecyclerView mImgRecyclerView1;
    private List<TaskAtta> mImgList1 = new ArrayList<>();
    private FileAdapter mImgAdapter1;

    private RecyclerView mImgRecyclerView2;
    private List<TaskAtta> mImgList2 = new ArrayList<>();
    private FileAdapter mImgAdapter2;


    private RecyclerView mImgRecyclerView3;
    private List<TaskAtta> mImgList3 = new ArrayList<>();
    private FileAdapter mImgAdapter3;


    private RecyclerView mImgRecyclerView4;
    private List<TaskAtta> mImgList4 = new ArrayList<>();
    private FileAdapter mImgAdapter4;


    public static ProZQZQFragment newInstance(int page, String proID, MyProInfo info) {
        Bundle args = new Bundle();
        args.putInt(MERCHANT_DETAILS_PAGE, page);
        myProInfo= info;
        args.putString("proID", proID);
        ProZQZQFragment tripFragment = new ProZQZQFragment();
        tripFragment.setArguments(args);
        return tripFragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mPage = getArguments().getInt(MERCHANT_DETAILS_PAGE);
        mProID  = getArguments().getString("proID");
        context = getActivity().getApplicationContext();
        shapeLoadingDialog = new ShapeLoadingDialog(getActivity());
        setData();
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_pro_detailpro_zq, container, false);
        mRecyclerView = (RecyclerView) view.findViewById(R.id.mRecyclerView);
        mData = new ArrayList<ProZQUserZQInfo>();
        initAdapter(mData);
//        getData();
        editflag = false;
        return view;
    }

    private void setData(){
//        mFoodData = new ArrayList<>();
//        for(int i=0; i<5;i++){
//            mFoodData.add("美食"+i);
//        }

    }
    /**
     * 设置RecyclerView属性
     */
    private void initAdapter(List<ProZQUserZQInfo> data) {
//        mRecyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL_LIST));
        mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
        mAdapter = new DemoAdapter(data);
        mAdapter.openLoadAnimation();
        mRecyclerView.setAdapter(mAdapter);//设置adapter


        //设置item点击事件
        mAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
            @Override
            public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {

                if(position>mData.size() ||position== mData.size())
                {
                    return;
                }
                mData.get(position);

                ProZQUserZQInfo proZQUserZQInfo = mData.get(position);
                switch (view.getId()) {
                    case R.id.tv_myset1:
                    case R.id.tv_myset2:
                    case R.id.tv_myset3:
                    case R.id.tv_myset4:
                        Intent intent12 = new Intent(getActivity(), ZQUserZQDetailActivity.class);
                        String creditorId = proZQUserZQInfo.getCreditorInfo().getId();

                        intent12.putExtra("creditorId",creditorId);
                        if(proZQUserZQInfo.getProjectCrDec()!=null) {
                            intent12.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
                        }else{
                            intent12.putExtra("creditorRightsId", "");
                        }
                        intent12.putExtra("proid",mProID);
                        intent12.putExtra("page",2);
                        getActivity().startActivity(intent12);
                        break;
                    case R.id.show_op:
                        Intent intent15 = new Intent(getActivity(), ZQUserZQDetailActivity.class);
                        intent15.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getId());
                        if(proZQUserZQInfo.getProjectCrDec()!=null) {
                            intent15.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
                        }else{
                            intent15.putExtra("creditorRightsId", "");
                        }
                        intent15.putExtra("proid",mProID);
                        intent15.putExtra("page",2);
                        getActivity().startActivity(intent15);
                        break;
                    case R.id.btn_commit:
                        //1.填写基础信息
                        //2.我的操作记录
                        //3.我的操作记录
                        //4.我的基础信息
                        //6\7 我的基础信息
                        if (proZQUserZQInfo.itemType == 1 ) {
//                            ZQUserInfo mInfo = new ZQUserInfo();
//                            mInfo.setId(proZQUserZQInfo.creditorInfo.getId());
//                            mInfo.setBankruptcyProjectId(mProID);

//                            ZQUserDetailBaseInfo info= new ZQUserDetailBaseInfo();
//                            info.setId(proZQUserZQInfo.creditorInfo.getId());
//                            info.setBankruptcyProjectId(mProID);
////                            CreateZQOneProjectActivity.start(getActivity(), info);
//
////                            ZQUserDetailBaseInfo info = new ZQUserDetailBaseInfo();
////                            info.setId(mInfo.getId());
////                            info.setContact(mInfo.getContact());
////                            info.setBankruptcyProjectId(mInfo.getBankruptcyProjectId());
//                            EditZQUserBaseInfoActivity.start(getActivity(), info, 1, 0);
                            Intent intent = new Intent(getActivity(), ZQUserZQDetailActivity.class);
                            String creditorId1 = proZQUserZQInfo.getCreditorInfo().getId();
                            if(creditorId1== null || "".equalsIgnoreCase(creditorId1) || "null".equalsIgnoreCase(creditorId1))
                            {
                                creditorId1 = myProInfo.getCreditorId();
                            }
                            intent.putExtra("creditorId",creditorId1);
                            if(proZQUserZQInfo.getProjectCrDec()!=null) {
                                intent.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
                            }else{
                                intent.putExtra("creditorRightsId", "");
                            }
                            intent.putExtra("proid",mProID);
                            intent.putExtra("page",2);
                            getActivity().startActivity(intent);

                        }
                        if(proZQUserZQInfo.itemType == 2 || proZQUserZQInfo.itemType == 3)
                        {
                            Intent intent = new Intent(getActivity(), ZQUserZQDetailActivity.class);
                            intent.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getId());
                            if(proZQUserZQInfo.getProjectCrDec()!=null) {
                                intent.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
                            }else{
                                intent.putExtra("creditorRightsId", "");
                            }
                            intent.putExtra("proid",mProID);
                            intent.putExtra("page",2);
                            getActivity().startActivity(intent);
                        }
                        if(proZQUserZQInfo.itemType == 4 || proZQUserZQInfo.itemType == 6|| proZQUserZQInfo.itemType == 7|| proZQUserZQInfo.itemType == 8)
                        {
                            Intent intent = new Intent(getActivity(), ZQUserZQDetailActivity.class);
                            intent.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getId());
                            if(proZQUserZQInfo.getProjectCrDec()!=null) {
                                intent.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
                            }else{
                                intent.putExtra("creditorRightsId", "");
                            }
                            intent.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getId());
                            intent.putExtra("proid",mProID);
                            intent.putExtra("page",0);
                            getActivity().startActivity(intent);
                        }
                        if(proZQUserZQInfo.itemType == 22)
                        {
                            ZQUserDetailBaseInfo info= new ZQUserDetailBaseInfo();
                            info = proZQUserZQInfo.creditorInfo;
                            info.setId(proZQUserZQInfo.getCreditorInfo().getCreditorId());
//                            info.setBankruptcyProjectId(mProID);
                            EditZQUserBaseInfoActivity.start(getActivity(), info, 1, 1);
                        }
                        break;
                    case R.id.btn_commit2:

                        //2 立即申报
                        //3 修改基础信息
                        //4 立即申报

                        if(proZQUserZQInfo.itemType == 22)
                        {
                            Intent intent = new Intent(getActivity(), ZQUserZQDetailActivity.class);
                            intent.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getCreditorId());
                            if(proZQUserZQInfo.getProjectCrDec()!=null) {
                                intent.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
                            }else{
                                intent.putExtra("creditorRightsId", "");
                            }
                            intent.putExtra("proid",mProID);
                            intent.putExtra("page",2);
                            getActivity().startActivity(intent);
                        }
                        if (proZQUserZQInfo.itemType == 2 || proZQUserZQInfo.itemType == 4 || proZQUserZQInfo.itemType == 8) {
                            if (true) {
                                String bigtype = proZQUserZQInfo.creditorInfo.getIdentityBigTypes().getValue();// 0表示企业，1表示自然债权人，2标识税务机关

                                CreateZQFristApplyActivity.start(getActivity(), proZQUserZQInfo.creditorInfo.getSysUserId(), mProID, bigtype, 1);
                            }
                        }
                        if( proZQUserZQInfo.itemType == 3)
                        {
                            ZQUserDetailBaseInfo info= new ZQUserDetailBaseInfo();
//                            info.setId(proZQUserZQInfo.creditorInfo.getId());
//                            info.setBankruptcyProjectId(mProID);

                           info = proZQUserZQInfo.creditorInfo;
                            EditZQUserBaseInfo_EditActivity.start(getActivity(), info, 1, 1);
//                            EditZQUserBaseInfo_zqActivity.start(getActivity(), info, 1, 0);

//                            Intent intent = new Intent(getActivity(), ZQUserZQDetailActivity.class);
//                            intent.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getId());
//                            if(proZQUserZQInfo.getProjectCrDec()!=null) {
//                                intent.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
//                            }else{
//                                intent.putExtra("creditorRightsId", "");
//                            }
//                            intent.putExtra("proid",mProID);
//                            getActivity().startActivity(intent);
                        }

                        if( proZQUserZQInfo.itemType == 5 ||  proZQUserZQInfo.itemType == 6|| proZQUserZQInfo.itemType == 7)
                        {
                            Intent intent = new Intent(getActivity(), ZQUserZQDetailActivity.class);
                            intent.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getId());
                            intent.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getId());
                            if(proZQUserZQInfo.getProjectCrDec()!=null) {
                                intent.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
                            }else{
                                intent.putExtra("creditorRightsId", "");
                            }
                            intent.putExtra("proid",mProID);
                            intent.putExtra("page",1);
                            getActivity().startActivity(intent);
                        }

                        break;

                    case R.id.btn_commit3:
                            Intent intent = new Intent(getActivity(), ZQUserZQDetailActivity.class);
                            intent.putExtra("creditorId",proZQUserZQInfo.getCreditorInfo().getId());
                        if(proZQUserZQInfo.getProjectCrDec()!=null) {
                            intent.putExtra("creditorRightsId", proZQUserZQInfo.getProjectCrDec().getId());
                        }else{
                            intent.putExtra("creditorRightsId", "");
                        }
                            intent.putExtra("proid",mProID);
                            intent.putExtra("page",2);
                            getActivity().startActivity(intent);
                        break;

                    case R.id.look_res:
                        if(proZQUserZQInfo.getZqUserDetailBaseInfo()!=null && proZQUserZQInfo.getZqUserDetailBaseInfo().getAuditInstructions()!=null) {
                            noticeDialog = new PublicNoticeDialog(getActivity(), new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    String sendStatus = "";
                                    if (view.getId() == R.id.btn_chancel_notice) {//暂存

                                        noticeDialog.dismiss();
                                    } else if (view.getId() == R.id.ll_close) {
                                        noticeDialog.dismiss();
                                        return;
                                    } else {//生成

                                        noticeDialog.dismiss();
                                    }
                                    noticeDialog.dismiss();

                                }
                            }, 5, "原因", proZQUserZQInfo.getZqUserDetailBaseInfo().getAuditInstructions(), "", "确定");
                            noticeDialog.show();
                        }
                        break;
                    case R.id.tv_midsearch:

                        break;

                }
            }
        });

    }

    private PublicNoticeDialog noticeDialog;
    /**
     * adapter
     */
    class DemoAdapter extends BaseMultiItemQuickAdapter<ProZQUserZQInfo,BaseViewHolder> {
        public DemoAdapter(List<ProZQUserZQInfo> data) {
            super(data);
            //顶部展示
            addItemType(0,R.layout.fragment_pro_detailpro_zq_item_top);

            //填写基础信息
            addItemType(1, R.layout.fragment_zq_zq_detail_base_item);
            //暂存
            addItemType(2, R.layout.fragment_zq_zq_detail_base_item);
            addItemType(22, R.layout.fragment_zq_zq_detail_base_item);
            //已发送验证
            addItemType(3, R.layout.fragment_zq_zq_detail_base_item);


            //审核通过
            addItemType(4, R.layout.fragment_zq_zq_detail_base_item);
            //审核拒绝
            //申报未审查
            addItemType(5, R.layout.fragment_zq_zq_detail_base_item);
            //申报
            addItemType(6, R.layout.fragment_zq_zq_detail_base_item);
            addItemType(7, R.layout.fragment_zq_zq_detail_base_item);
            addItemType(8, R.layout.fragment_zq_zq_detail_base_item);
            addItemType(101, R.layout.fragment_pro_detailpro_zq_item_nodata);


            addItemType(0xfffffe6c, R.layout.fragment_zq_zq_detail_base_item);
        }

        @Override
        protected void convert(BaseViewHolder helper, ProZQUserZQInfo item) {


            switch (helper.getItemViewType()) {


                case 0:



                    LayoutInflater inflater = LayoutInflater.from(getActivity());

                    PageView mPageView = (PageView) helper.getView(R.id.pageview);
                    if(mPageView.getPageCount()>0)
                    {
                        return;
                    }
//                    mPageView.removeAllPages();
                    CakeView cv;
                    CakeView cv_r;
                    List<BaseMessage> mList;

                    LinearLayout view = (LinearLayout) inflater.inflate(R.layout.fragment_pro_detailpro_zq_item_top_subleft, null);
                    mPageView.addPage(view);
                    LinearLayout view1 = (LinearLayout) inflater.inflate(R.layout.fragment_pro_detailpro_zq_item_top_subright, null);
                    mPageView.addPage(view1);




                    float f_top_left1 = 0.0f;
                    float f_top_left2 =  0.0f;
                    float f_top_left3 =  0.0f;
                    float f_top_left4 =  0.0f;

                    float f_top_right1 =  0.0f;
                    float f_top_right2 = 0.0f;
                    float f_top_right3 =  0.0f;

                    try {
                        f_top_left1 = Float.parseFloat(item.getKindTaxMoney());
                        f_top_left2 = Float.parseFloat(item.getKindGuaranteeMoney());
                        f_top_left3 = Float.parseFloat(item.getKindOtherMoney());
                        f_top_left4 = Float.parseFloat(item.getKindOrdinaryMoney());

                        f_top_right1 = Float.parseFloat(item.getConfirmedMoney());
                        f_top_right2 = Float.parseFloat(item.getDisconfirmationMoney() );
                        f_top_right3 = Float.parseFloat(item.getUndeterminedMoney() );

                    }catch (Exception ex){
                        ex.printStackTrace();
                    }


                    helper.setText(R.id.top_left1, CommonUtils.resetMoney(item.getKindTaxMoney())+"");
                    helper.setText(R.id.top_left2, CommonUtils.resetMoney(item.getKindGuaranteeMoney())+"");
                    helper.setText(R.id.top_left3, CommonUtils.resetMoney(item.getKindOtherMoney())+"");
                    helper.setText(R.id.top_left4, CommonUtils.resetMoney(item.getKindOrdinaryMoney())+"");

                    helper.setText(R.id.top_right1, CommonUtils.resetMoney(item.getConfirmedMoney())+"");
                    helper.setText(R.id.top_right2, CommonUtils.resetMoney(item.getDisconfirmationMoney())+"");
                    helper.setText(R.id.top_right3, CommonUtils.resetMoney(item.getUndeterminedMoney())+"");

                    cv = (CakeView) helper.getView(R.id.cv);
                    mList = new ArrayList<BaseMessage>();

                    BaseMessage mes = new BaseMessage();
                    mes.setPercent(f_top_left1);
                    mes.setContent("");
                    mes.setColor(Color.parseColor("#87B0C9"));
                    mList.add(mes);

                    BaseMessage message = new BaseMessage();
                    message.setPercent(f_top_left2);
                    message.setContent("");
                    ;
                    message.setColor(Color.parseColor("#FF9C5D"));
                    mList.add(message);

                    BaseMessage mes0 = new BaseMessage();
                    mes0.setPercent(f_top_left3);
                    mes0.setContent("ֹ");
                    mes0.setColor(Color.parseColor("#F3DB57"));
                    mList.add(mes0);

                    BaseMessage mes1 = new BaseMessage();
                    mes1.setPercent(f_top_left4);
                    mes1.setContent("");
                    mes1.setColor(Color.parseColor("#EBE9DC"));
                    mList.add(mes1);
                    cv.setCakeData(mList);


                    cv_r = (CakeView) helper.getView(R.id.cv2);
                    mList = new ArrayList<BaseMessage>();

                    BaseMessage mes_r = new BaseMessage();
                    mes_r.setPercent(f_top_right1);
//                    mes_r.setPercent(10);
                    mes_r.setContent("");
                    mes_r.setColor(Color.parseColor("#FF9C5D"));
                    mList.add(mes_r);

                    BaseMessage mes_r2 = new BaseMessage();
                    mes_r2.setPercent(f_top_right2);
//                    mes_r2.setPercent(30);
                    mes_r2.setContent("");
                    mes_r2.setColor(Color.parseColor("#87B0C9"));
                    mList.add(mes_r2);


                    BaseMessage mes_r3 = new BaseMessage();
                    mes_r3.setPercent(f_top_right3);
//                    mes_r3.setPercent(20);
                    mes_r3.setContent("");
                    mes_r3.setColor(Color.parseColor("#EBE9DC"));
                    mList.add(mes_r3);
                    cv_r.setCakeData(mList);


                    break;


                case 101:
                    helper.setVisible(R.id.show_op,false);
                    helper.setVisible(R.id.base_2,false);
                    break;

                case 1:  //填写基础信息 - //通知状态
//                    helper.setGone(R.id.im_per_status,false);
//                    helper.setGone(R.id.icon_show, false);
                    helper.addOnClickListener(R.id.btn_commit);
                    helper.setVisible(R.id.btn_commit,true);
                    helper.setText(R.id.btn_commit,"我的操作记录");
                    helper.setBackgroundRes(R.id.btn_commit, R.drawable.pro_g_corner_btn);
                    if(item.getCreditorInfo()!=null)
                    {
                        ZQUserDetailBaseInfo creditorInfo = item.getCreditorInfo();

                        helper.setText(R.id.tv_zq_name,creditorInfo.getCreditorName());
                        helper.setText(R.id.tv_zq_phone,creditorInfo.getContact());
                    }
                    break;

                case 22:  //  我的操作记录 - //待验证

//                    helper.setGone(R.id.im_per_status,false);
                    helper.setVisible(R.id.show_op,false);
                    helper.setGone(R.id.base_2,false);
//                    helper.setVisible(R.id.icon_show, true);
                    helper.addOnClickListener(R.id.btn_commit);

//                    helper.setVisible(R.id.look_res,true);
                    helper.setVisible(R.id.btn_commit,true);
                    helper.setText(R.id.btn_commit,"继续填写基础信息");
                    helper.setBackgroundRes(R.id.btn_commit, R.drawable.pro_g_corner_btn);
//                    helper.setGone(R.id.btn_commit,false);
                    helper.addOnClickListener(R.id.btn_commit2);



                    helper.setVisible(R.id.btn_commit2,true);
                    helper.setText(R.id.btn_commit2,"我的操作记录");
                    helper.setBackgroundRes(R.id.btn_commit2, R.drawable.pro_g2_corner_btn);


                    helper.setGone(R.id.group_userbase_show, false);
                    helper.setGone(R.id.group_user_proxyer_base_show, false);

                    helper.setGone(R.id.activity_edit_zqbase_person_userbase_proxyer_show, false);
                    helper.setGone(R.id.activity_edit_zqbase_tax_userbase_proxyer_show, false);


//                    helper.setVisible(R.id.im_per_status, false);
//                    helper.setImageResource(R.id.im_per_status, R.drawable.icon_dsfy);
                    if(item.getCreditorInfo()!=null) {
                        ZQUserDetailBaseInfo info = item.getCreditorInfo();
                        if (info != null && (info.getIdentityBigTypes() == null || "null".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) || "".equalsIgnoreCase(info.getIdentityBigTypes().getValue()))) {
                            helper.setVisible(R.id.base_2, true);
                            helper.setText(R.id.tv_zq_name, info.getCreditorName());
                            helper.setText(R.id.tv_zq_phone, info.getContact());
                        } else if ("0".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "0".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.group_userbase_show, true);
                            helper.setVisible(R.id.tv_change_legalname1, false);

                            helper.setText(R.id.zq_group_base_name, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.group_base_social, Utils.tmpString(info.getSocialUniformCreditCode()));
                            helper.setText(R.id.group_base_legalname, Utils.tmpString(info.getLegalRepresentativeName()));
                            helper.setText(R.id.group_legal_phone, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.group_legal_other_phone, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.group_legal_other_email, Utils.tmpString(info.getEmail()));
                            helper.setText(R.id.group_base_bankinfo1, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.group_base_bankinfo2, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.group_base_bankinfo3, "账号：" + Utils.tmpString(info.getBankAccount()));

                            helper.setText(R.id.group_legal_cardnum, hideMidText(Utils.tmpString(info.getCardNumber())));
                            final ImageView img_group_legal_cardnum = (ImageView) helper.getView(R.id.img_group_legal_cardnum);

                            final TextView group_legal_cardnum = (TextView) helper.getView(R.id.group_legal_cardnum);
                            final String strCardNumber = info.getCardNumber();
                            img_group_legal_cardnum.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (group_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        group_legal_cardnum.setText(hideMidText(strCardNumber));
                                        img_group_legal_cardnum.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        group_legal_cardnum.setText(strCardNumber);
                                        img_group_legal_cardnum.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            final ImageView group_legal_other_email_click = (ImageView) helper.getView(R.id.group_legal_other_email_click);
                            final String strEmail = info.getEmail();
                            group_legal_other_email_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.group_legal_addr, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.group_legal_addr, Utils.tmpString(""));
                            }


                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideBusinessLicenseAttas() != null) {
                                mImgList1.addAll(info.getProvideBusinessLicenseAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideBusinessLicenseAttas() != null) {
//                                for (int i = 0; i < info.getProvideBusinessLicenseAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideBusinessLicenseAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_recycler1_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_recycler1_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler1, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler1_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler1, true);
                            }


                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList2.addAll(info.getProvideCardAttas());

                            }


//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_recycler2_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_recycler2_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler2, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler2_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler2, true);
                            }

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvideLegalRepresentativeAttas() != null) {
                                mImgList3.addAll(info.getProvideLegalRepresentativeAttas());

                            }
//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvideLegalRepresentativeAttas() != null) {
//                                for (int i = 0; i < info.getProvideLegalRepresentativeAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideLegalRepresentativeAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideLegalRepresentative().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_recycler3_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_recycler3_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler3, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler3_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler3, true);
                            }
                        } else if ("0".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "1".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);

                            helper.setGone(R.id.group_userbase_show, false);
                            helper.setGone(R.id.group_user_proxyer_base_show, true);
                            helper.setText(R.id.zq_group_base_name_py, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.tv_zqr_base_jg_social, Utils.tmpString(info.getSocialUniformCreditCode()));
                            helper.setText(R.id.tv_zqr_base_legalname, Utils.tmpString(info.getLegalRepresentativeName()));
//                helper.setText(R.id.group_base_social_py,);
                            helper.setText(R.id.group_base_legalname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.group_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.group_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.group_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView group_legal_other_email_py_click = (ImageView) helper.getView(R.id.group_legal_other_email_py_click);
                            final String strEmail = info.getEmail();
                            group_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.group_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.group_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.group_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));

                            helper.setText(R.id.group_legal_cardnum_py, Utils.tmpString(info.getAgentLicenseNumber()));

                            helper.setText(R.id.group_legal_cardnum_py, hideMidText(info.getCreditorsIDCardNumber()));
                            final ImageView img_group_legal_cardnum_py = (ImageView) helper.getView(R.id.img_group_legal_cardnum_py);

                            final TextView group_legal_cardnum = (TextView) helper.getView(R.id.group_legal_cardnum_py);
                            final String strAgentLicenseNumber = info.getAgentLicenseNumber();
                            img_group_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (group_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        group_legal_cardnum.setText(hideMidText(strAgentLicenseNumber));
                                        img_group_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        group_legal_cardnum.setText(strAgentLicenseNumber);
                                        img_group_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.group_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.group_legal_addr_py, Utils.tmpString(""));
                            }
                            mImgRecyclerView4 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler4);
                            mImgRecyclerView4.setNestedScrollingEnabled(false);

                            mImgAdapter4 = new FileAdapter(getActivity(), mImgList4);
                            mImgRecyclerView4.setLayoutManager(mImgAdapter4.createLayoutManager());
                            mImgRecyclerView4.setAdapter(mImgAdapter4);
                            mImgList4.clear();

                            if (info.getProvideLegalRepresentativeAttas() != null) {
                                mImgList4.addAll(info.getProvideLegalRepresentativeAttas());

                            }

//                            mImgRecyclerView4 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler4);
//                            mImgRecyclerView4.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager4 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView4.setLayoutManager(manager4);
//                            mImgAdapter4 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList4.clear();
//                            mImgAdapter4.setList(mImgList4);
//                            mImgRecyclerView4.setAdapter(mImgAdapter4);
//
//                            if (info.getProvideLegalRepresentativeAttas() != null) {
//                                for (int i = 0; i < info.getProvideLegalRepresentativeAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideLegalRepresentativeAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList4.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList4, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
                            if ("1".equalsIgnoreCase(info.getProvideLegalRepresentative().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler4_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler4_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler4, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler4_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler4_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler4, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler4_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler4, true);
                            }


                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideBusinessLicenseAttas() != null) {
                                mImgList1.addAll(info.getProvideBusinessLicenseAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideBusinessLicenseAttas() != null) {
//                                for (int i = 0; i < info.getProvideBusinessLicenseAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideBusinessLicenseAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
                            if ("1".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler1, true);
                            }

                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList2.addAll(info.getCreditorsProvideCardAttas());

                            }

//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler2_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler2_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler2, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler2_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler2, true);
                            }

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList3.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler3_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler3_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler3, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler3_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler3, true);
                            }
                        } else if ("1".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "2".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.zqbase_personbase_show, true);

                            helper.setText(R.id.zq_person_base_name, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.person_legal_phone, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.person_legal_other_phone, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.person_legal_other_email, Utils.tmpString(info.getEmail()));
                            final ImageView person_legal_other_email_click = (ImageView) helper.getView(R.id.person_legal_other_email_click);
                            final String strEmail = info.getEmail();
                            person_legal_other_email_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.person_base_bankinfo1, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.person_base_bankinfo2, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.person_base_bankinfo3, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.person_legal_cardnum, hideMidText(info.getCardNumber()));
                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.person_legal_addr, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.person_legal_addr, Utils.tmpString(""));
                            }

//                helper.setText(R.id.group_legal_cardnum,hideMidText(info.getCardNumber()));
                            final ImageView img_person_legal_cardnum = (ImageView) helper.getView(R.id.img_person_legal_cardnum);

                            final TextView person_legal_cardnum = (TextView) helper.getView(R.id.person_legal_cardnum);
                            final String strCardNumber = info.getCardNumber();
                            img_person_legal_cardnum.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum.setText(hideMidText(strCardNumber));
                                        img_person_legal_cardnum.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum.setText(strCardNumber);
                                        img_person_legal_cardnum.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList1.addAll(info.getProvideCardAttas());

                            }


//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_recycler1, true);
                            }
                        } else if ("1".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "1".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.activity_edit_zqbase_person_userbase_proxyer_show, true);


                            if (!"0".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"1".equalsIgnoreCase(info.getProcessStatus().getValue())
                                    && !"3".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"4".equalsIgnoreCase(info.getProcessStatus().getValue())) {

//                    helper.setVisible(R.id.tv_person_base_pyname_py_4, true);
                            }


                            helper.setText(R.id.zq_person_base_name_py, Utils.tmpString(info.getCreditorName()));

                            helper.setText(R.id.zq_person_base_pyname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.person_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.person_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.person_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView person_legal_other_email_py_click = (ImageView) helper.getView(R.id.person_legal_other_email_py_click);
                            final String strEmail = info.getEmail();
                            person_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.person_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.person_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.person_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.person_legal_cardnum_py, hideMidText(Utils.tmpString(info.getCreditorsIDCardNumber())));
                            helper.setText(R.id.person_legal_cardnum_cr_py, hideMidText(Utils.tmpString(info.getCardNumber())));


                            final ImageView img_person_legal_cardnum_py = (ImageView) helper.getView(R.id.img_person_legal_cardnum_py);

                            final TextView person_legal_cardnum_py = (TextView) helper.getView(R.id.person_legal_cardnum_py);
                            final String strCardNumber = info.getCreditorsIDCardNumber();
                            img_person_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum_py.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum_py.setText(hideMidText(strCardNumber));
                                        img_person_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum_py.setText(strCardNumber);
                                        img_person_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            final ImageView img_person_legal_cardnum_cr_py = (ImageView) helper.getView(R.id.img_person_legal_cardnum_cr_py);

                            final TextView person_legal_cardnum_cr_py = (TextView) helper.getView(R.id.person_legal_cardnum_cr_py);
                            final String strCrCardNumber = info.getCardNumber();
                            img_person_legal_cardnum_cr_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum_cr_py.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum_cr_py.setText(hideMidText(strCrCardNumber));
                                        img_person_legal_cardnum_cr_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum_cr_py.setText(strCrCardNumber);
                                        img_person_legal_cardnum_cr_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.person_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.person_legal_addr_py, Utils.tmpString(""));
                            }

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_py_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList1.addAll(info.getProvideCardAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_py_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_py_recycler1_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_py_recycler1_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1, true);
                            }


                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList2.addAll(info.getCreditorsProvideCardAttas());

                            }



//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
//
//                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2_txt, true);
//                                helper.setText(R.id.person_userbase_proxy_recycler2_txt, "线下提供");
//                                helper.setGone(R.id.person_userbase_proxy_recycler2, false);
//                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2_txt, true);
//                                helper.setText(R.id.person_userbase_proxy_recycler2_txt, "已提供");
//                                helper.setGone(R.id.person_userbase_proxy_recycler2, false);
//                            } else {
//                                helper.setGone(R.id.person_userbase_proxy_recycler2_txt, false);
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2, true);
//                            }

//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList3.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler3_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler3_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler3, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_recycler3_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_recycler3, true);
                            }
                        } else if ("2".equalsIgnoreCase(info.getIdentityBigTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.activity_edit_zqbase_tax_userbase_proxyer_show, true);
                            if (!"0".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"1".equalsIgnoreCase(info.getProcessStatus().getValue())
                                    && !"3".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"4".equalsIgnoreCase(info.getProcessStatus().getValue())) {

//                    helper.setVisible(R.id.tv_person_base_pyname_py_5, true);
                            }
                            helper.setText(R.id.zq_tax_base_name_py, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.zq_tax_base_pyname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.tax_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.tax_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.tax_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView tax_legal_other_email_py_click = (ImageView) helper.getView(R.id.tax_legal_other_email_py_click);
                            final String strEmail = Utils.tmpString(info.getEmail());
                            tax_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });

                            helper.setText(R.id.tax_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.tax_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.tax_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.tax_legal_cardnum_py, hideMidText(Utils.tmpString(info.getCreditorsIDCardNumber())));
                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.tax_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.tax_legal_addr_py, Utils.tmpString(""));
                            }


                            final ImageView img_tax_legal_cardnum_py = (ImageView) helper.getView(R.id.img_tax_legal_cardnum_py);

                            final TextView tax_legal_cardnum_py = (TextView) helper.getView(R.id.tax_legal_cardnum_py);
                            final String strCardNumber = info.getCreditorsIDCardNumber();
                            img_tax_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (tax_legal_cardnum_py.getText().toString().indexOf("*") == -1) {
                                        tax_legal_cardnum_py.setText(hideMidText(strCardNumber));
                                        img_tax_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        tax_legal_cardnum_py.setText(strCardNumber);
                                        img_tax_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList1.addAll(info.getCreditorsProvideCardAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.tax_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1, true);
                            }
                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList2.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler2_txt, "线下提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler2_txt, "已提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler2, false);
                            } else {
                                helper.setGone(R.id.tax_userbase_proxy_recycler2_txt, false);
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2, true);
                            }
                        }
                    }
                    break;

                case 2:  //  我的操作记录 - //待验证
//                    helper.setGone(R.id.im_per_status,false);
                    helper.setVisible(R.id.show_op,false);
                    helper.setGone(R.id.base_2,false);
//                    helper.setVisible(R.id.icon_show, true);
                    helper.addOnClickListener(R.id.btn_commit);
                    helper.setVisible(R.id.btn_commit,true);
//                    helper.setGone(R.id.btn_commit,false);
                    helper.setText(R.id.btn_commit,"我的操作记录");
                    helper.setBackgroundRes(R.id.btn_commit, R.drawable.pro_g_corner_btn);

                    helper.setGone(R.id.group_userbase_show, false);
                    helper.setGone(R.id.group_user_proxyer_base_show, false);

                    helper.setGone(R.id.activity_edit_zqbase_person_userbase_proxyer_show, false);
                    helper.setGone(R.id.activity_edit_zqbase_tax_userbase_proxyer_show, false);

                    helper.setVisible(R.id.im_per_status, true);
                    helper.setImageResource(R.id.im_per_status, R.drawable.icon_dsfy);

                    helper.setGone(R.id.group_userbase_show,false);
                    helper.setGone(R.id.group_user_proxyer_base_show, false);
                    helper.setGone(R.id.zqbase_personbase_show, false);
                    helper.setGone(R.id.activity_edit_zqbase_person_userbase_proxyer_show,false);
                    helper.setGone(R.id.activity_edit_zqbase_tax_userbase_proxyer_show,false);
                    if(item.getCreditorInfo()!=null) {
                        ZQUserDetailBaseInfo info = item.getCreditorInfo();
                        if (info != null && (info.getIdentityBigTypes() == null || "null".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) || "".equalsIgnoreCase(info.getIdentityBigTypes().getValue()))) {
                            helper.setVisible(R.id.base_2, true);
                            helper.setText(R.id.tv_zq_name, info.getCreditorName());
                            helper.setText(R.id.tv_zq_phone, info.getContact());
                        } else if ("0".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "0".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.group_userbase_show, true);
                            helper.setVisible(R.id.tv_change_legalname1, false);

                            helper.setText(R.id.zq_group_base_name, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.group_base_social, Utils.tmpString(info.getSocialUniformCreditCode()));
                            helper.setText(R.id.group_base_legalname, Utils.tmpString(info.getLegalRepresentativeName()));
                            helper.setText(R.id.group_legal_phone, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.group_legal_other_phone, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.group_legal_other_email, Utils.tmpString(info.getEmail()));
                            helper.setText(R.id.group_base_bankinfo1, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.group_base_bankinfo2, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.group_base_bankinfo3, "账号：" + Utils.tmpString(info.getBankAccount()));

                            helper.setText(R.id.group_legal_cardnum, hideMidText(Utils.tmpString(info.getCardNumber())));
                            final ImageView img_group_legal_cardnum = (ImageView) helper.getView(R.id.img_group_legal_cardnum);

                            final TextView group_legal_cardnum = (TextView) helper.getView(R.id.group_legal_cardnum);
                            final String strCardNumber = info.getCardNumber();
                            img_group_legal_cardnum.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (group_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        group_legal_cardnum.setText(hideMidText(strCardNumber));
                                        img_group_legal_cardnum.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        group_legal_cardnum.setText(strCardNumber);
                                        img_group_legal_cardnum.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            final ImageView group_legal_other_email_click = (ImageView) helper.getView(R.id.group_legal_other_email_click);
                            final String strEmail = info.getEmail();
                            group_legal_other_email_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.group_legal_addr, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.group_legal_addr, Utils.tmpString(""));
                            }


                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideBusinessLicenseAttas() != null) {
                                mImgList1.addAll(info.getProvideBusinessLicenseAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideBusinessLicenseAttas() != null) {
//                                for (int i = 0; i < info.getProvideBusinessLicenseAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideBusinessLicenseAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_recycler1_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_recycler1_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler1, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler1_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler1, true);
                            }


                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList2.addAll(info.getProvideCardAttas());

                            }


//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_recycler2_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_recycler2_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler2, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler2_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler2, true);
                            }

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvideLegalRepresentativeAttas() != null) {
                                mImgList3.addAll(info.getProvideLegalRepresentativeAttas());

                            }
//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvideLegalRepresentativeAttas() != null) {
//                                for (int i = 0; i < info.getProvideLegalRepresentativeAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideLegalRepresentativeAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideLegalRepresentative().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_recycler3_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_recycler3_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler3, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler3_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler3, true);
                            }
                        } else if ("0".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "1".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);

                            helper.setGone(R.id.group_userbase_show, false);
                            helper.setGone(R.id.group_user_proxyer_base_show, true);
                            helper.setText(R.id.zq_group_base_name_py, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.tv_zqr_base_jg_social, Utils.tmpString(info.getSocialUniformCreditCode()));
                            helper.setText(R.id.tv_zqr_base_legalname, Utils.tmpString(info.getLegalRepresentativeName()));
//                helper.setText(R.id.group_base_social_py,);
                            helper.setText(R.id.group_base_legalname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.group_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.group_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.group_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView group_legal_other_email_py_click = (ImageView) helper.getView(R.id.group_legal_other_email_py_click);
                            final String strEmail = info.getEmail();
                            group_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.group_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.group_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.group_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));

                            helper.setText(R.id.group_legal_cardnum_py, Utils.tmpString(info.getAgentLicenseNumber()));

                            helper.setText(R.id.group_legal_cardnum_py, hideMidText(info.getCreditorsIDCardNumber()));
                            final ImageView img_group_legal_cardnum_py = (ImageView) helper.getView(R.id.img_group_legal_cardnum_py);

                            final TextView group_legal_cardnum = (TextView) helper.getView(R.id.group_legal_cardnum_py);
                            final String strAgentLicenseNumber = info.getAgentLicenseNumber();
                            img_group_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (group_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        group_legal_cardnum.setText(hideMidText(strAgentLicenseNumber));
                                        img_group_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        group_legal_cardnum.setText(strAgentLicenseNumber);
                                        img_group_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.group_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.group_legal_addr_py, Utils.tmpString(""));
                            }
                            mImgRecyclerView4 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler4);
                            mImgRecyclerView4.setNestedScrollingEnabled(false);

                            mImgAdapter4 = new FileAdapter(getActivity(), mImgList4);
                            mImgRecyclerView4.setLayoutManager(mImgAdapter4.createLayoutManager());
                            mImgRecyclerView4.setAdapter(mImgAdapter4);
                            mImgList4.clear();

                            if (info.getProvideLegalRepresentativeAttas() != null) {
                                mImgList4.addAll(info.getProvideLegalRepresentativeAttas());

                            }

//                            mImgRecyclerView4 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler4);
//                            mImgRecyclerView4.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager4 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView4.setLayoutManager(manager4);
//                            mImgAdapter4 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList4.clear();
//                            mImgAdapter4.setList(mImgList4);
//                            mImgRecyclerView4.setAdapter(mImgAdapter4);
//
//                            if (info.getProvideLegalRepresentativeAttas() != null) {
//                                for (int i = 0; i < info.getProvideLegalRepresentativeAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideLegalRepresentativeAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList4.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList4, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
                            if ("1".equalsIgnoreCase(info.getProvideLegalRepresentative().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler4_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler4_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler4, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler4_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler4_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler4, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler4_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler4, true);
                            }


                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideBusinessLicenseAttas() != null) {
                                mImgList1.addAll(info.getProvideBusinessLicenseAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideBusinessLicenseAttas() != null) {
//                                for (int i = 0; i < info.getProvideBusinessLicenseAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideBusinessLicenseAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
                            if ("1".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler1, true);
                            }

                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList2.addAll(info.getCreditorsProvideCardAttas());

                            }

//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler2_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler2_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler2, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler2_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler2, true);
                            }

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList3.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler3_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler3_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler3, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler3_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler3, true);
                            }
                        } else if ("1".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "2".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.zqbase_personbase_show, true);

                            helper.setText(R.id.zq_person_base_name, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.person_legal_phone, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.person_legal_other_phone, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.person_legal_other_email, Utils.tmpString(info.getEmail()));
                            final ImageView person_legal_other_email_click = (ImageView) helper.getView(R.id.person_legal_other_email_click);
                            final String strEmail = info.getEmail();
                            person_legal_other_email_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.person_base_bankinfo1, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.person_base_bankinfo2, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.person_base_bankinfo3, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.person_legal_cardnum, hideMidText(info.getCardNumber()));
                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.person_legal_addr, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.person_legal_addr, Utils.tmpString(""));
                            }

//                helper.setText(R.id.group_legal_cardnum,hideMidText(info.getCardNumber()));
                            final ImageView img_person_legal_cardnum = (ImageView) helper.getView(R.id.img_person_legal_cardnum);

                            final TextView person_legal_cardnum = (TextView) helper.getView(R.id.person_legal_cardnum);
                            final String strCardNumber = info.getCardNumber();
                            img_person_legal_cardnum.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum.setText(hideMidText(strCardNumber));
                                        img_person_legal_cardnum.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum.setText(strCardNumber);
                                        img_person_legal_cardnum.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList1.addAll(info.getProvideCardAttas());

                            }


//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_recycler1, true);
                            }
                        } else if ("1".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "1".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.activity_edit_zqbase_person_userbase_proxyer_show, true);


                            if (!"0".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"1".equalsIgnoreCase(info.getProcessStatus().getValue())
                                    && !"3".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"4".equalsIgnoreCase(info.getProcessStatus().getValue())) {

//                    helper.setVisible(R.id.tv_person_base_pyname_py_4, true);
                            }


                            helper.setText(R.id.zq_person_base_name_py, Utils.tmpString(info.getCreditorName()));

                            helper.setText(R.id.zq_person_base_pyname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.person_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.person_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.person_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView person_legal_other_email_py_click = (ImageView) helper.getView(R.id.person_legal_other_email_py_click);
                            final String strEmail = info.getEmail();
                            person_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.person_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.person_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.person_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.person_legal_cardnum_py, hideMidText(Utils.tmpString(info.getCreditorsIDCardNumber())));
                            helper.setText(R.id.person_legal_cardnum_cr_py, hideMidText(Utils.tmpString(info.getCardNumber())));


                            final ImageView img_person_legal_cardnum_py = (ImageView) helper.getView(R.id.img_person_legal_cardnum_py);

                            final TextView person_legal_cardnum_py = (TextView) helper.getView(R.id.person_legal_cardnum_py);
                            final String strCardNumber = info.getCreditorsIDCardNumber();
                            img_person_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum_py.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum_py.setText(hideMidText(strCardNumber));
                                        img_person_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum_py.setText(strCardNumber);
                                        img_person_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            final ImageView img_person_legal_cardnum_cr_py = (ImageView) helper.getView(R.id.img_person_legal_cardnum_cr_py);

                            final TextView person_legal_cardnum_cr_py = (TextView) helper.getView(R.id.person_legal_cardnum_cr_py);
                            final String strCrCardNumber = info.getCardNumber();
                            img_person_legal_cardnum_cr_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum_cr_py.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum_cr_py.setText(hideMidText(strCrCardNumber));
                                        img_person_legal_cardnum_cr_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum_cr_py.setText(strCrCardNumber);
                                        img_person_legal_cardnum_cr_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.person_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.person_legal_addr_py, Utils.tmpString(""));
                            }

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_py_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList1.addAll(info.getProvideCardAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_py_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_py_recycler1_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_py_recycler1_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1, true);
                            }


                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList2.addAll(info.getCreditorsProvideCardAttas());

                            }



//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
//
//                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2_txt, true);
//                                helper.setText(R.id.person_userbase_proxy_recycler2_txt, "线下提供");
//                                helper.setGone(R.id.person_userbase_proxy_recycler2, false);
//                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2_txt, true);
//                                helper.setText(R.id.person_userbase_proxy_recycler2_txt, "已提供");
//                                helper.setGone(R.id.person_userbase_proxy_recycler2, false);
//                            } else {
//                                helper.setGone(R.id.person_userbase_proxy_recycler2_txt, false);
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2, true);
//                            }

//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList3.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler3_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler3_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler3, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_recycler3_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_recycler3, true);
                            }
                        } else if ("2".equalsIgnoreCase(info.getIdentityBigTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.activity_edit_zqbase_tax_userbase_proxyer_show, true);
                            if (!"0".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"1".equalsIgnoreCase(info.getProcessStatus().getValue())
                                    && !"3".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"4".equalsIgnoreCase(info.getProcessStatus().getValue())) {

//                    helper.setVisible(R.id.tv_person_base_pyname_py_5, true);
                            }
                            helper.setText(R.id.zq_tax_base_name_py, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.zq_tax_base_pyname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.tax_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.tax_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.tax_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView tax_legal_other_email_py_click = (ImageView) helper.getView(R.id.tax_legal_other_email_py_click);
                            final String strEmail = Utils.tmpString(info.getEmail());
                            tax_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });

                            helper.setText(R.id.tax_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.tax_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.tax_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.tax_legal_cardnum_py, hideMidText(Utils.tmpString(info.getCreditorsIDCardNumber())));
                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.tax_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.tax_legal_addr_py, Utils.tmpString(""));
                            }


                            final ImageView img_tax_legal_cardnum_py = (ImageView) helper.getView(R.id.img_tax_legal_cardnum_py);

                            final TextView tax_legal_cardnum_py = (TextView) helper.getView(R.id.tax_legal_cardnum_py);
                            final String strCardNumber = info.getCreditorsIDCardNumber();
                            img_tax_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (tax_legal_cardnum_py.getText().toString().indexOf("*") == -1) {
                                        tax_legal_cardnum_py.setText(hideMidText(strCardNumber));
                                        img_tax_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        tax_legal_cardnum_py.setText(strCardNumber);
                                        img_tax_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList1.addAll(info.getCreditorsProvideCardAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.tax_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1, true);
                            }
                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList2.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler2_txt, "线下提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler2_txt, "已提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler2, false);
                            } else {
                                helper.setGone(R.id.tax_userbase_proxy_recycler2_txt, false);
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2, true);
                            }
                        }
                    }
                    break;
                case 4: // 我的基础信息 立即申报 我的操作记录 -/身份验证通过

                    helper.setVisible(R.id.show_op,false);
                    helper.setVisible(R.id.fragment_zq_zq_apply_base_item,true);
                    helper.setVisible(R.id.show_op,true);
                    helper.addOnClickListener(R.id.show_op);
                    helper.addOnClickListener(R.id.btn_commit);
                    helper.addOnClickListener(R.id.btn_commit2);
                    helper.addOnClickListener(R.id.btn_commit3);

                    helper.setVisible(R.id.time_base_2,true);
                    helper.setVisible(R.id.btn_commit,true);
                    helper.setText(R.id.btn_commit,"我的基础信息");
                    helper.setVisible(R.id.btn_commit2,true);
                    helper.setBackgroundRes(R.id.btn_commit, R.drawable.pro_g_corner_btn);
                    if ("true".equalsIgnoreCase(item.hasCrDecTemp)) {
                        helper.setVisible(R.id.show_op,true);
                        helper.setText(R.id.btn_commit2, "继续填写申报");
                        helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                    } else {
                        helper.setVisible(R.id.show_op,true);
                        helper.setText(R.id.btn_commit2, "立即申报");
                        helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                    }

//                    helper.setText(R.id.btn_commit2,"立即申报");
                    helper.setGone(R.id.btn_commit3,false);
                    helper.setText(R.id.btn_commit3,"我的操作记录");

                    long nowtime1 =  System.currentTimeMillis()/1000;
                    long diffTime1 =StringToLeng(item.getClaimFilingEndTime())-nowtime1;
                    diffTime1  = diffTime1*1000;
                    long nd1 = 1000 * 24 * 60 * 60;// 一天的毫秒数
                    long nh1 = 1000 * 60 * 60;// 一小时的毫秒数
                    long nm1 = 1000 * 60;// 一分钟的毫秒数
                    long ns1 = 1000;// 一秒钟的毫秒数
                    long day1 = diffTime1 / nd1;// 计算差多少天
                    long hour1 = diffTime1 % nd1 / nh1;// 计算差多少小时
                    long min1 = diffTime1 % nd1 % nh1 / nm1;// 计算差多少分钟
                    long sec1 = diffTime1 % nd1 % nh1 % nm1 / ns1;// 计算差多少秒
                    // 输出结果
                    String strtime1 ="" + day1 + "天" + hour1 + "小时" + min1
                            + "分钟" + sec1 + "秒,";
                    helper.setVisible(R.id.btn_commit2,true);
                    helper.setText(R.id.tv_msg3,strtime1);
                    break;

                case 3:// 修改基础信息 、我的操作记录 //身份验证不通过
//                    helper.setGone(R.id.im_per_status,false);
//                    helper.setVisible(R.id.group_userbase_show,true);

                    helper.setVisible(R.id.im_per_status,false);

                    if("1".equalsIgnoreCase(item.getZqUserDetailBaseInfo().getProcessStatus().getValue()))
                    {
                        if("2".equalsIgnoreCase(item.getZqUserDetailBaseInfo().getIdentityStatus().getValue()))
                        {

                            helper.setVisible(R.id.im_per_status,true);
                            helper.setImageResource(R.id.im_per_status,R.drawable.icon_sfbtg);
                        }

                    }


                    helper.addOnClickListener(R.id.btn_commit);
                    helper.addOnClickListener(R.id.btn_commit2);
                    helper.setVisible(R.id.btn_commit,true);
                    helper.setText(R.id.btn_commit,"我的操作记录");
                    helper.setBackgroundRes(R.id.btn_commit, R.drawable.pro_g_corner_btn);
                    helper.setVisible(R.id.btn_commit2,true);
                    helper.setVisible(R.id.ll_novial,true);
                    helper.setVisible(R.id.look_res,true);
                    helper.setText(R.id.btn_commit2,"修改基础信息");
                    helper.addOnClickListener(R.id.look_res);
                    helper.setBackgroundRes(R.id.btn_commit2, R.drawable.pro_g2_corner_btn);
//                    helper.setBackgroundColor(R.id.btn_commit2, getResources().getColor(R.color.text_orger_color));
//                    helper.setBackgroundColor(R.id.btn_commit2,getResources().getColor(R.color.page_top));
                    if(item.getCreditorInfo()!=null) {
                        ZQUserDetailBaseInfo info = item.getCreditorInfo();
                        if (info != null && (info.getIdentityBigTypes() == null || "null".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) || "".equalsIgnoreCase(info.getIdentityBigTypes().getValue()))) {
                            helper.setVisible(R.id.base_2, true);
                            helper.setText(R.id.tv_zq_name, info.getCreditorName());
                            helper.setText(R.id.tv_zq_phone, info.getContact());
                        } else if ("0".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "0".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.group_userbase_show, true);
                            helper.setVisible(R.id.tv_change_legalname1, false);

                            helper.setText(R.id.zq_group_base_name, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.group_base_social, Utils.tmpString(info.getSocialUniformCreditCode()));
                            helper.setText(R.id.group_base_legalname, Utils.tmpString(info.getLegalRepresentativeName()));
                            helper.setText(R.id.group_legal_phone, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.group_legal_other_phone, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.group_legal_other_email, Utils.tmpString(info.getEmail()));
                            helper.setText(R.id.group_base_bankinfo1, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.group_base_bankinfo2, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.group_base_bankinfo3, "账号：" + Utils.tmpString(info.getBankAccount()));

                            helper.setText(R.id.group_legal_cardnum, hideMidText(Utils.tmpString(info.getCardNumber())));
                            final ImageView img_group_legal_cardnum = (ImageView) helper.getView(R.id.img_group_legal_cardnum);

                            final TextView group_legal_cardnum = (TextView) helper.getView(R.id.group_legal_cardnum);
                            final String strCardNumber = info.getCardNumber();
                            img_group_legal_cardnum.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (group_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        group_legal_cardnum.setText(hideMidText(strCardNumber));
                                        img_group_legal_cardnum.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        group_legal_cardnum.setText(strCardNumber);
                                        img_group_legal_cardnum.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            final ImageView group_legal_other_email_click = (ImageView) helper.getView(R.id.group_legal_other_email_click);
                            final String strEmail = info.getEmail();
                            group_legal_other_email_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.group_legal_addr, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.group_legal_addr, Utils.tmpString(""));
                            }


                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideBusinessLicenseAttas() != null) {
                                mImgList1.addAll(info.getProvideBusinessLicenseAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideBusinessLicenseAttas() != null) {
//                                for (int i = 0; i < info.getProvideBusinessLicenseAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideBusinessLicenseAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_recycler1_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_recycler1_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler1, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler1_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler1, true);
                            }


                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList2.addAll(info.getProvideCardAttas());

                            }


//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_recycler2_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_recycler2_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler2, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler2_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler2, true);
                            }

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvideLegalRepresentativeAttas() != null) {
                                mImgList3.addAll(info.getProvideLegalRepresentativeAttas());

                            }
//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvideLegalRepresentativeAttas() != null) {
//                                for (int i = 0; i < info.getProvideLegalRepresentativeAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideLegalRepresentativeAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideLegalRepresentative().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_recycler3_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_recycler3_txt, "已提供");
                                helper.setGone(R.id.group_userbase_recycler3, false);
                            } else {
                                helper.setGone(R.id.group_userbase_recycler3_txt, false);
                                helper.setVisible(R.id.group_userbase_recycler3, true);
                            }
                        } else if ("0".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "1".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);

                            helper.setGone(R.id.group_userbase_show, false);
                            helper.setGone(R.id.group_user_proxyer_base_show, true);
                            helper.setText(R.id.zq_group_base_name_py, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.tv_zqr_base_jg_social, Utils.tmpString(info.getSocialUniformCreditCode()));
                            helper.setText(R.id.tv_zqr_base_legalname, Utils.tmpString(info.getLegalRepresentativeName()));
//                helper.setText(R.id.group_base_social_py,);
                            helper.setText(R.id.group_base_legalname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.group_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.group_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.group_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView group_legal_other_email_py_click = (ImageView) helper.getView(R.id.group_legal_other_email_py_click);
                            final String strEmail = info.getEmail();
                            group_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.group_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.group_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.group_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));

                            helper.setText(R.id.group_legal_cardnum_py, Utils.tmpString(info.getAgentLicenseNumber()));

                            helper.setText(R.id.group_legal_cardnum_py, hideMidText(info.getCreditorsIDCardNumber()));
                            final ImageView img_group_legal_cardnum_py = (ImageView) helper.getView(R.id.img_group_legal_cardnum_py);

                            final TextView group_legal_cardnum = (TextView) helper.getView(R.id.group_legal_cardnum_py);
                            final String strAgentLicenseNumber = info.getAgentLicenseNumber();
                            img_group_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (group_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        group_legal_cardnum.setText(hideMidText(strAgentLicenseNumber));
                                        img_group_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        group_legal_cardnum.setText(strAgentLicenseNumber);
                                        img_group_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.group_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.group_legal_addr_py, Utils.tmpString(""));
                            }
                            mImgRecyclerView4 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler4);
                            mImgRecyclerView4.setNestedScrollingEnabled(false);

                            mImgAdapter4 = new FileAdapter(getActivity(), mImgList4);
                            mImgRecyclerView4.setLayoutManager(mImgAdapter4.createLayoutManager());
                            mImgRecyclerView4.setAdapter(mImgAdapter4);
                            mImgList4.clear();

                            if (info.getProvideLegalRepresentativeAttas() != null) {
                                mImgList4.addAll(info.getProvideLegalRepresentativeAttas());

                            }

//                            mImgRecyclerView4 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler4);
//                            mImgRecyclerView4.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager4 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView4.setLayoutManager(manager4);
//                            mImgAdapter4 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList4.clear();
//                            mImgAdapter4.setList(mImgList4);
//                            mImgRecyclerView4.setAdapter(mImgAdapter4);
//
//                            if (info.getProvideLegalRepresentativeAttas() != null) {
//                                for (int i = 0; i < info.getProvideLegalRepresentativeAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideLegalRepresentativeAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList4.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList4, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
                            if ("1".equalsIgnoreCase(info.getProvideLegalRepresentative().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler4_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler4_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler4, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler4_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler4_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler4, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler4_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler4, true);
                            }


                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideBusinessLicenseAttas() != null) {
                                mImgList1.addAll(info.getProvideBusinessLicenseAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideBusinessLicenseAttas() != null) {
//                                for (int i = 0; i < info.getProvideBusinessLicenseAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideBusinessLicenseAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
                            if ("1".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler1, true);
                            }

                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList2.addAll(info.getCreditorsProvideCardAttas());

                            }

//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler2_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler2_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler2, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler2_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler2, true);
                            }

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList3.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.group_userbase_proxy_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler3_txt, "线下提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.group_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.group_userbase_proxy_recycler3_txt, "已提供");
                                helper.setGone(R.id.group_userbase_proxy_recycler3, false);
                            } else {
                                helper.setGone(R.id.group_userbase_proxy_recycler3_txt, false);
                                helper.setVisible(R.id.group_userbase_proxy_recycler3, true);
                            }
                        } else if ("1".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "2".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.zqbase_personbase_show, true);

                            helper.setText(R.id.zq_person_base_name, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.person_legal_phone, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.person_legal_other_phone, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.person_legal_other_email, Utils.tmpString(info.getEmail()));
                            final ImageView person_legal_other_email_click = (ImageView) helper.getView(R.id.person_legal_other_email_click);
                            final String strEmail = info.getEmail();
                            person_legal_other_email_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.person_base_bankinfo1, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.person_base_bankinfo2, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.person_base_bankinfo3, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.person_legal_cardnum, hideMidText(info.getCardNumber()));
                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.person_legal_addr, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.person_legal_addr, Utils.tmpString(""));
                            }

//                helper.setText(R.id.group_legal_cardnum,hideMidText(info.getCardNumber()));
                            final ImageView img_person_legal_cardnum = (ImageView) helper.getView(R.id.img_person_legal_cardnum);

                            final TextView person_legal_cardnum = (TextView) helper.getView(R.id.person_legal_cardnum);
                            final String strCardNumber = info.getCardNumber();
                            img_person_legal_cardnum.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum.setText(hideMidText(strCardNumber));
                                        img_person_legal_cardnum.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum.setText(strCardNumber);
                                        img_person_legal_cardnum.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList1.addAll(info.getProvideCardAttas());

                            }


//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_recycler1, true);
                            }
                        } else if ("1".equalsIgnoreCase(info.getIdentityBigTypes().getValue()) && "1".equalsIgnoreCase(info.getIdentitySmallTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.activity_edit_zqbase_person_userbase_proxyer_show, true);


                            if (!"0".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"1".equalsIgnoreCase(info.getProcessStatus().getValue())
                                    && !"3".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"4".equalsIgnoreCase(info.getProcessStatus().getValue())) {

//                    helper.setVisible(R.id.tv_person_base_pyname_py_4, true);
                            }


                            helper.setText(R.id.zq_person_base_name_py, Utils.tmpString(info.getCreditorName()));

                            helper.setText(R.id.zq_person_base_pyname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.person_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.person_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.person_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView person_legal_other_email_py_click = (ImageView) helper.getView(R.id.person_legal_other_email_py_click);
                            final String strEmail = info.getEmail();
                            person_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });


                            helper.setText(R.id.person_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.person_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.person_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.person_legal_cardnum_py, hideMidText(Utils.tmpString(info.getCreditorsIDCardNumber())));
                            helper.setText(R.id.person_legal_cardnum_cr_py, hideMidText(Utils.tmpString(info.getCardNumber())));


                            final ImageView img_person_legal_cardnum_py = (ImageView) helper.getView(R.id.img_person_legal_cardnum_py);

                            final TextView person_legal_cardnum_py = (TextView) helper.getView(R.id.person_legal_cardnum_py);
                            final String strCardNumber = info.getCreditorsIDCardNumber();
                            img_person_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum_py.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum_py.setText(hideMidText(strCardNumber));
                                        img_person_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum_py.setText(strCardNumber);
                                        img_person_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            final ImageView img_person_legal_cardnum_cr_py = (ImageView) helper.getView(R.id.img_person_legal_cardnum_cr_py);

                            final TextView person_legal_cardnum_cr_py = (TextView) helper.getView(R.id.person_legal_cardnum_cr_py);
                            final String strCrCardNumber = info.getCardNumber();
                            img_person_legal_cardnum_cr_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (person_legal_cardnum_cr_py.getText().toString().indexOf("*") == -1) {
                                        person_legal_cardnum_cr_py.setText(hideMidText(strCrCardNumber));
                                        img_person_legal_cardnum_cr_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        person_legal_cardnum_cr_py.setText(strCrCardNumber);
                                        img_person_legal_cardnum_cr_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });


                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.person_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.person_legal_addr_py, Utils.tmpString(""));
                            }

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_py_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getProvideCardAttas() != null) {
                                mImgList1.addAll(info.getProvideCardAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_py_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//
//                            if (info.getProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvideCard().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_py_recycler1_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1_txt, true);
                                helper.setText(R.id.person_userbase_proxy_py_recycler1_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_py_recycler1_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_py_recycler1, true);
                            }


                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList2.addAll(info.getCreditorsProvideCardAttas());

                            }



//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
//
//                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2_txt, true);
//                                helper.setText(R.id.person_userbase_proxy_recycler2_txt, "线下提供");
//                                helper.setGone(R.id.person_userbase_proxy_recycler2, false);
//                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2_txt, true);
//                                helper.setText(R.id.person_userbase_proxy_recycler2_txt, "已提供");
//                                helper.setGone(R.id.person_userbase_proxy_recycler2, false);
//                            } else {
//                                helper.setGone(R.id.person_userbase_proxy_recycler2_txt, false);
//                                helper.setVisible(R.id.person_userbase_proxy_recycler2, true);
//                            }

//                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler3);
//                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgRecyclerView3 = (RecyclerView) helper.getView(R.id.person_userbase_proxy_recycler3);
                            mImgRecyclerView3.setNestedScrollingEnabled(false);

                            mImgAdapter3 = new FileAdapter(getActivity(), mImgList3);
                            mImgRecyclerView3.setLayoutManager(mImgAdapter3.createLayoutManager());
                            mImgRecyclerView3.setAdapter(mImgAdapter3);
                            mImgList3.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList3.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            FullyGridLayoutManager manager3 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView3.setLayoutManager(manager3);
//                            mImgAdapter3 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList3.clear();
//                            mImgAdapter3.setList(mImgList3);
//                            mImgRecyclerView3.setAdapter(mImgAdapter3);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList3.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList3, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler3_txt, "线下提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler3, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.person_userbase_proxy_recycler3_txt, true);
                                helper.setText(R.id.person_userbase_proxy_recycler3_txt, "已提供");
                                helper.setGone(R.id.person_userbase_proxy_recycler3, false);
                            } else {
                                helper.setGone(R.id.person_userbase_proxy_recycler3_txt, false);
                                helper.setVisible(R.id.person_userbase_proxy_recycler3, true);
                            }
                        } else if ("2".equalsIgnoreCase(info.getIdentityBigTypes().getValue())) {
                            helper.setGone(R.id.base_2, false);
                            helper.setGone(R.id.activity_edit_zqbase_tax_userbase_proxyer_show, true);
                            if (!"0".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"1".equalsIgnoreCase(info.getProcessStatus().getValue())
                                    && !"3".equalsIgnoreCase(info.getProcessStatus().getValue()) && !"4".equalsIgnoreCase(info.getProcessStatus().getValue())) {

//                    helper.setVisible(R.id.tv_person_base_pyname_py_5, true);
                            }
                            helper.setText(R.id.zq_tax_base_name_py, Utils.tmpString(info.getCreditorName()));
                            helper.setText(R.id.zq_tax_base_pyname_py, Utils.tmpString(info.getAgentName()));
                            helper.setText(R.id.tax_legal_phone_py, Utils.tmpString(info.getContact()));
                            helper.setText(R.id.tax_legal_other_phone_py, Utils.tmpString(info.getOtherContact()));
                            helper.setText(R.id.tax_legal_other_email_py, Utils.tmpString(info.getEmail()));

                            final ImageView tax_legal_other_email_py_click = (ImageView) helper.getView(R.id.tax_legal_other_email_py_click);
                            final String strEmail = Utils.tmpString(info.getEmail());
                            tax_legal_other_email_py_click.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (!"".equalsIgnoreCase(strEmail)) {
                                        Intent data = new Intent(Intent.ACTION_SENDTO);
                                        data.setData(Uri.parse("mailto:" + strEmail));
                                        data.putExtra(Intent.EXTRA_SUBJECT, "");
                                        data.putExtra(Intent.EXTRA_TEXT, "");
                                        startActivity(data);
                                    }
                                }
                            });

                            helper.setText(R.id.tax_base_bankinfo1_py, "账户名：" + Utils.tmpString(info.getBankAccountName()));
                            helper.setText(R.id.tax_base_bankinfo2_py, "开户行：" + Utils.tmpString(info.getBank()));
                            helper.setText(R.id.tax_base_bankinfo3_py, "账号：" + Utils.tmpString(info.getBankAccount()));
                            helper.setText(R.id.tax_legal_cardnum_py, hideMidText(Utils.tmpString(info.getCreditorsIDCardNumber())));
                            if (info.getAddressInfo() != null) {
                                helper.setText(R.id.tax_legal_addr_py, Utils.tmpString(info.getAddressInfo().getDetailString()));
                            } else {
                                helper.setText(R.id.tax_legal_addr_py, Utils.tmpString(""));
                            }


                            final ImageView img_tax_legal_cardnum_py = (ImageView) helper.getView(R.id.img_tax_legal_cardnum_py);

                            final TextView tax_legal_cardnum_py = (TextView) helper.getView(R.id.tax_legal_cardnum_py);
                            final String strCardNumber = info.getCreditorsIDCardNumber();
                            img_tax_legal_cardnum_py.setOnClickListener(new View.OnClickListener() {
                                @Override
                                public void onClick(View view) {
                                    if (tax_legal_cardnum_py.getText().toString().indexOf("*") == -1) {
                                        tax_legal_cardnum_py.setText(hideMidText(strCardNumber));
                                        img_tax_legal_cardnum_py.setImageResource(R.drawable.icon_visible);
                                    } else {
                                        tax_legal_cardnum_py.setText(strCardNumber);
                                        img_tax_legal_cardnum_py.setImageResource(R.drawable.icon_unvisible);

                                    }
                                }
                            });

                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler1);
                            mImgRecyclerView1.setNestedScrollingEnabled(false);

                            mImgAdapter1 = new FileAdapter(getActivity(), mImgList1);
                            mImgRecyclerView1.setLayoutManager(mImgAdapter1.createLayoutManager());
                            mImgRecyclerView1.setAdapter(mImgAdapter1);
                            mImgList1.clear();

                            if (info.getCreditorsProvideCardAttas() != null) {
                                mImgList1.addAll(info.getCreditorsProvideCardAttas());

                            }

//                            mImgRecyclerView1 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler1);
//                            mImgRecyclerView1.setNestedScrollingEnabled(false);
//
//                            FullyGridLayoutManager manager = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView1.setLayoutManager(manager);
//                            mImgAdapter1 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList1.clear();
//                            mImgAdapter1.setList(mImgList1);
//                            mImgRecyclerView1.setAdapter(mImgAdapter1);
//
//                            if (info.getCreditorsProvideCardAttas() != null) {
//                                for (int i = 0; i < info.getCreditorsProvideCardAttas().size(); i++) {
//                                    TaskAtta atta = info.getCreditorsProvideCardAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList1.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList1, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getCreditorsProvideCard().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler1_txt, "线下提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler1, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler1_txt, "已提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler1, false);
                            } else {
                                helper.setGone(R.id.tax_userbase_proxy_recycler1_txt, false);
                                helper.setVisible(R.id.tax_userbase_proxy_recycler1, true);
                            }
                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler2);
                            mImgRecyclerView2.setNestedScrollingEnabled(false);

                            mImgAdapter2 = new FileAdapter(getActivity(), mImgList2);
                            mImgRecyclerView2.setLayoutManager(mImgAdapter2.createLayoutManager());
                            mImgRecyclerView2.setAdapter(mImgAdapter2);
                            mImgList2.clear();

                            if (info.getProvidePowerAttorneyAttas() != null) {
                                mImgList2.addAll(info.getProvidePowerAttorneyAttas());

                            }

//                            mImgRecyclerView2 = (RecyclerView) helper.getView(R.id.tax_userbase_proxy_recycler2);
//                            mImgRecyclerView2.setNestedScrollingEnabled(false);
//
//
//                            FullyGridLayoutManager manager2 = new FullyGridLayoutManager(getActivity(), 4, GridLayoutManager.VERTICAL, false);
//                            mImgRecyclerView2.setLayoutManager(manager2);
//                            mImgAdapter2 = new BaseFragment.GridImagesAdapter(getActivity(), TYPE_PREVIEW);
//                            mImgList2.clear();
//                            mImgAdapter2.setList(mImgList2);
//                            mImgRecyclerView2.setAdapter(mImgAdapter2);
//
//                            if (info.getProvidePowerAttorneyAttas() != null) {
//                                for (int i = 0; i < info.getProvidePowerAttorneyAttas().size(); i++) {
//                                    TaskAtta atta = info.getProvidePowerAttorneyAttas().get(i);
//                                    JSONObject obj = new JSONObject();
//                                    try {
//                                        obj.putOpt("filename", atta.getAttachmentName());
//                                        obj.putOpt("filepath", atta.getAttachmentDownloadAddress());
//                                        obj.putOpt("filesize", atta.getAttachmentSize());
//                                        obj.putOpt("loadUrl", atta.getAttachmentPreviewAddress());
//                                        mImgList2.add(new Gson().fromJson(obj.toString(), UploadImage.class));
//                                        BaseCreateActivity.sorFiles(mImgList2, true);
//                                    } catch (JSONException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }

                            if ("1".equalsIgnoreCase(info.getProvidePowerAttorney().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler2_txt, "线下提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler2, false);
                            } else if ("2".equalsIgnoreCase(info.getProvideBusinessLicense().getValue())) {
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2_txt, true);
                                helper.setText(R.id.tax_userbase_proxy_recycler2_txt, "已提供");
                                helper.setGone(R.id.tax_userbase_proxy_recycler2, false);
                            } else {
                                helper.setGone(R.id.tax_userbase_proxy_recycler2_txt, false);
                                helper.setVisible(R.id.tax_userbase_proxy_recycler2, true);
                            }
                        }
                    }
                    break;
                case 5:// 修改基础信息 、我的操作记录 //暂存

                    break;
                case 6:// 我的基础信息 -立即申报 — 我的操作记录
                    helper.setVisible(R.id.show_op,false);
                    helper.setGone(R.id.fragment_zq_zq_apply_base_item,true);
                    helper.setVisible(R.id.show_op,true);
                    helper.addOnClickListener(R.id.show_op);
                    helper.addOnClickListener(R.id.btn_commit);
                    helper.addOnClickListener(R.id.btn_commit2);
                    helper.addOnClickListener(R.id.btn_commit3);
                    helper.setVisible(R.id.btn_commit,true);
                    helper.setText(R.id.btn_commit,"我的基础信息");
                    helper.setBackgroundRes(R.id.btn_commit, R.drawable.pro_g_corner_btn);
                    helper.setVisible(R.id.btn_commit2,true);
//                    helper.setText(R.id.btn_commit2,"立即申报");
                    if ("true".equalsIgnoreCase(item.hasCrDecTemp)) {
                        helper.setVisible(R.id.show_op,true);
                        helper.setText(R.id.btn_commit2, "继续填写申报");
                        helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                    } else {
                        helper.setVisible(R.id.show_op,true);
                        helper.setText(R.id.btn_commit2, "立即申报");
                        helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                    }
//                    helper.setBackgroundColor(R.id.btn_commit2,getResources().getColor(R.color.text_orger_color));
                    helper.setGone(R.id.btn_commit3,false);
                    helper.setText(R.id.btn_commit3,"我的操作记录");
                    if(item.getCreditorInfo()!=null)
                    {
                        ZQUserDetailBaseInfo info = item.getCreditorInfo();
                        if("2".equalsIgnoreCase(info.getIdentityBigTypes().getValue()))
                        {

                        }else{

                        }
                    }
                    break;
                case 7:// 我的基础信息 -债权信息 — 我的操作记录
                    helper.setVisible(R.id.show_op,false);
                    helper.setGone(R.id.base_2,false);
                    helper.setGone(R.id.group_userbase_show,false);

                    helper.addOnClickListener(R.id.btn_commit);
                    helper.addOnClickListener(R.id.btn_commit2);
                    helper.addOnClickListener(R.id.btn_commit3);
                    helper.setVisible(R.id.btn_commit,true);
                    helper.setText(R.id.btn_commit,"我的基础信息");
                    helper.setBackgroundRes(R.id.btn_commit, R.drawable.pro_g_corner_btn);
                    helper.setVisible(R.id.btn_commit2,true);
                    helper.setText(R.id.btn_commit2, "我的债权信息");
                    helper.setBackgroundRes(R.id.btn_commit2, R.drawable.pro_g2_corner_btn);
//                    helper.setBackgroundColor(R.id.btn_commit2, getResources().getColor(R.color.text_orger_color));
                    helper.setGone(R.id.btn_commit3,false);
                    helper.setText(R.id.btn_commit3,"我的操作记录");
                    DecimalFormat decimalFormat = new DecimalFormat("0.00");//构造方法的字符格式这里如果小数不足2位,会以0补足.

                    helper.setGone(R.id.fragment_zq_zq_info_notax_base_item, false);
                    helper.setGone(R.id.fragment_zq_zq_info_notax_qr_base_item, false);
                    helper.setGone(R.id.fragment_zq_zq_info_tax_qr_base_item, false);
                    helper.setGone(R.id.fragment_zq_zq_info_tax_base_item, false);


                    if(item.getCreditorInfo()!=null)
                    {

                        ZQUserDetailBaseInfo info = item.getCreditorInfo();
                        ProCrDecInfo proCrDecInfo = item.getProjectCrDec();
                        if(proCrDecInfo.getReview()!=null) {
                            if ("2".equalsIgnoreCase(info.getIdentityBigTypes().getValue())) {
                                float f = 0.00f;

                                helper.setVisible(R.id.fragment_zq_zq_info_tax_qr_base_item, true);
                                helper.setVisible(R.id.tv_myset2, true);

                                helper.addOnClickListener(R.id.tv_myset2);
                                helper.setText(R.id.tax_qr_msg1, info.getCreditorName());
                                helper.setText(R.id.tax_qr_msg2, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountTotal()) + " 元");

                                helper.setText(R.id.tax_qr_msg3, CommonUtils.resetMoney(proCrDecInfo.getReview().getConfirmedMoney()) + " 元");
                                helper.setText(R.id.tax_qr_msg4, CommonUtils.resetMoney(proCrDecInfo.getReview().getRegularTaxMoney()) + " 元");
                                helper.setText(R.id.tax_qr_msg5, CommonUtils.resetMoney(proCrDecInfo.getReview().getOverdueFineMoney()) + " 元");
                                helper.setText(R.id.tax_qr_msg6, CommonUtils.resetMoney(proCrDecInfo.getReview().getOtherMoney()) + " 元");
                                helper.setText(R.id.tax_qr_msg8, CommonUtils.resetMoney(proCrDecInfo.getReview().getUndeterminedMoney()) + " 元");
                                helper.setText(R.id.tax_qr_msg7, CommonUtils.resetMoney(proCrDecInfo.getReview().getDisconfirmationMoney()) + " 元");


                            } else {

                                if (proCrDecInfo != null) {


                                    helper.setVisible(R.id.fragment_zq_zq_info_notax_qr_base_item, true);
                                    helper.setVisible(R.id.tv_myset4, true);
                                    helper.addOnClickListener(R.id.tv_myset4);
                                    helper.setText(R.id.notax_qr_msg1, info.getCreditorName());

                                    helper.setText(R.id.notax_qr_msg2, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountTotal()) + " 元");

                                    helper.setText(R.id.notax_qr_msg3, CommonUtils.resetMoney(proCrDecInfo.getReview().getConfirmedMoney()) + " 元");
                                    helper.setText(R.id.notax_qr_msg4, CommonUtils.resetMoney(proCrDecInfo.getReview().getOrdinaryMoney()) + " 元");
                                    helper.setText(R.id.notax_qr_msg5, CommonUtils.resetMoney(proCrDecInfo.getReview().getGuaranteePriority()) + " 元");
                                    helper.setText(R.id.notax_qr_msg6, CommonUtils.resetMoney(proCrDecInfo.getReview().getOtherPriorityMoney()) + " 元");
                                    helper.setText(R.id.notax_qr_msg7, CommonUtils.resetMoney(proCrDecInfo.getReview().getDisconfirmationMoney()) + " 元");
                                    helper.setText(R.id.notax_qr_msg8, CommonUtils.resetMoney(proCrDecInfo.getReview().getUndeterminedMoney()) + " 元");

                                }
                            }
                        }else{
                            if ("2".equalsIgnoreCase(info.getIdentityBigTypes().getValue())) {
                                float f = 0.00f;

                                helper.setVisible(R.id.fragment_zq_zq_info_tax_base_item, true);
                                helper.setVisible(R.id.tv_myset1, true);

                                helper.addOnClickListener(R.id.tv_myset1);
                                helper.setText(R.id.tax_msg1, info.getCreditorName());
                                helper.setText(R.id.tax_msg3, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountRegularTax()) + " 元");
                                helper.setText(R.id.tax_msg4, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountOverdueFine()) + " 元");
                                helper.setText(R.id.tax_msg5, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountOther()) + " 元");
                                helper.setText(R.id.tax_msg2, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountTotal()) + " 元");
                                helper.setText(R.id.tax_msg6, proCrDecInfo.getDeclareAmountInterestDetail());
                                helper.setText(R.id.tax_msg7, proCrDecInfo.getDeclareAmountOtherDetail());


                            } else {

                                if (proCrDecInfo != null) {


                                    helper.setVisible(R.id.fragment_zq_zq_info_notax_base_item, true);
                                    helper.setVisible(R.id.tv_myset3, true);
                                    helper.addOnClickListener(R.id.tv_myset3);
                                    helper.setText(R.id.notax_msg1, info.getCreditorName());

                                    helper.setText(R.id.notax_msg3, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountPrincipal()) + " 元");
                                    helper.setText(R.id.notax_msg4, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountInterest()) + " 元");
                                    helper.setText(R.id.notax_msg5, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountOther()) + " 元");
                                    helper.setText(R.id.notax_msg2, CommonUtils.resetMoney(proCrDecInfo.getDeclareAmountTotal()) + " 元");
                                    helper.setText(R.id.notax_msg6, proCrDecInfo.getDeclareAmountInterestDetail());
                                    helper.setText(R.id.notax_msg7, proCrDecInfo.getDeclareAmountOtherDetail());

                                }
                            }
                        }
                    }



                    break;
                case 8:
                    helper.setGone(R.id.base_2,false);
                    helper.setGone(R.id.fragment_zq_zq_apply_base_item,true);
//                    helper.setVisible(R.id.tv_myset3,true);
//                    helper.addOnClickListener(R.id.tv_myset3);
                    helper.addOnClickListener(R.id.btn_commit);
                    helper.addOnClickListener(R.id.btn_commit2);
                    helper.addOnClickListener(R.id.btn_commit3);
                    helper.addOnClickListener(R.id.show_op);

                    helper.setVisible(R.id.btn_commit,true);
                    helper.setText(R.id.btn_commit,"我的基础信息");
                    helper.setBackgroundRes(R.id.btn_commit, R.drawable.pro_g_corner_btn);
//                    helper.setBackgroundColor(R.id.btn_commit2,getResources().getColor(R.color.text_orger_color));
                    helper.setBackgroundRes(R.id.btn_commit2, R.drawable.pro_g2_corner_btn);
                    helper.setGone(R.id.btn_commit3,false);
                    helper.setText(R.id.btn_commit3,"我的操作记录");

                    long nowtime = System.currentTimeMillis()/1000;
                    if(item.getClaimFilingStartTime()==null || "null".equalsIgnoreCase(item.getClaimFilingStartTime())|| "".equalsIgnoreCase(item.getClaimFilingStartTime()))
                    {
//                        helper.setGone(R.id.base_2,true);
                        helper.setGone(R.id.btn_commit3,true);
                        helper.setText(R.id.btn_commit3,"我的操作记录");

                        helper.setVisible(R.id.fragment_zq_zq_apply_base_item,true);
                        helper.setVisible(R.id.time_base_3,true);
                        helper.setGone(R.id.ll_showTime, false);
                    }else if(StringToLeng(item.getClaimFilingStartTime()) >nowtime){
                        helper.setGone(R.id.btn_commit3,true);
                        helper.setText(R.id.btn_commit3,"我的操作记录");
                        helper.setVisible(R.id.fragment_zq_zq_apply_base_item,true);
                        helper.setVisible(R.id.time_base_3, false);
                        helper.addOnClickListener(R.id.show_op);
                        helper.setVisible(R.id.show_op,false);

                        if(item.getClaimFilingEndTime()==null || "null".equalsIgnoreCase(item.getClaimFilingEndTime())||"0".equalsIgnoreCase(item.getClaimFilingEndTime())|| "".equalsIgnoreCase(item.getClaimFilingStartTime()))
                        {
                            helper.setText(R.id.tv_msg2, Utils.timeStamp2Date(StringToLeng(item.getClaimFilingStartTime()) * 1000, "yyyy-MM-dd HH:mm") + "-"
                                    + "  ~,");
                        }else {
                            helper.setText(R.id.tv_msg2, Utils.timeStamp2Date(StringToLeng(item.getClaimFilingStartTime()) * 1000, "yyyy-MM-dd HH:mm") + "-"
                                    + Utils.timeStamp2Date(StringToLeng(item.getClaimFilingEndTime()) * 1000, "yyyy-MM-dd HH:mm"));
                        }

                        long diffTime =StringToLeng(item.getClaimFilingStartTime())-nowtime;
                        diffTime  = diffTime*1000;
                        long nd = 1000 * 24 * 60 * 60;// 一天的毫秒数
                        long nh = 1000 * 60 * 60;// 一小时的毫秒数
                        long nm = 1000 * 60;// 一分钟的毫秒数
                        long ns = 1000;// 一秒钟的毫秒数
                        long day = diffTime / nd;// 计算差多少天
                        long hour = diffTime % nd / nh;// 计算差多少小时
                        long min = diffTime % nd % nh / nm;// 计算差多少分钟
                        long sec = diffTime % nd % nh % nm / ns;// 计算差多少秒
                        // 输出结果
                        String strtime = "" + Math.abs(day) + "天" + Math.abs(hour) + "小时" + Math.abs(min)
                                + "分钟,";
//                        helper.setVisible(R.id.btn_commit2,true);
                        helper.setText(R.id.tv_msg3,strtime);
                        helper.setTextColor(R.id.tv_msg3, getResources().getColor(R.color.page_top));

                    }else {
                        helper.setGone(R.id.btn_commit3,false);
                        helper.setText(R.id.btn_commit3,"我的操作记录");
                        if(item.getClaimFilingEndTime()==  null|| "null".equalsIgnoreCase(item.getClaimFilingEndTime())||"0".equalsIgnoreCase(item.getClaimFilingEndTime())|| "".equalsIgnoreCase(item.getClaimFilingStartTime()))
                        {
                            helper.setVisible(R.id.fragment_zq_zq_apply_base_item,true);
                            helper.setVisible(R.id.show_op,true);
                            helper.addOnClickListener(R.id.show_op);
                            helper.setGone(R.id.time_base_3,false);
                            helper.setGone(R.id.tv_msg3_1,false);
                            helper.setGone(R.id.tv_msg3,false);
                            helper.setVisible(R.id.time_base_2,true);
                            helper.setVisible(R.id.btn_commit2,true);
                            if(item.getClaimFilingEndTime()==null || "null".equalsIgnoreCase(item.getClaimFilingEndTime())||"0".equalsIgnoreCase(item.getClaimFilingEndTime())|| "".equalsIgnoreCase(item.getClaimFilingStartTime()))
                            {
                                helper.setText(R.id.tv_msg2, Utils.timeStamp2Date(StringToLeng(item.getClaimFilingStartTime()) * 1000, "yyyy-MM-dd HH:mm") + "-"
                                        + "  ~,");
                            }else {
                                helper.setText(R.id.tv_msg2, Utils.timeStamp2Date(StringToLeng(item.getClaimFilingStartTime()) * 1000, "yyyy-MM-dd HH:mm") + "-"
                                        + Utils.timeStamp2Date(StringToLeng(item.getClaimFilingEndTime()) * 1000, "yyyy-MM-dd HH:mm"));
                            }

                            if (item.getClaimFilingEndTime()==  null|| "null".equalsIgnoreCase(item.getClaimFilingEndTime())||"0".equalsIgnoreCase(item.getClaimFilingEndTime())|| "".equalsIgnoreCase(item.getClaimFilingStartTime())) {

                                if ("true".equalsIgnoreCase(item.hasCrDecTemp)) {
                                    helper.setGone(R.id.btn_commit3,false);
                                    helper.setVisible(R.id.show_op,true);
                                    helper.setText(R.id.btn_commit2, "继续填写申报");
                                    helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                } else {
                                    helper.setText(R.id.btn_commit2, "立即申报");
                                    helper.setVisible(R.id.show_op,true);
                                    helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                }

                            } else {
                                helper.setText(R.id.tv_msg3_1, "您已逾时未申报");
                                helper.setGone(R.id.btn_commit3,false);
                                if ("true".equalsIgnoreCase(item.hasCrDecTemp)) {
                                    helper.setVisible(R.id.show_op,true);
                                    helper.setText(R.id.btn_commit2, "继续填写申报");
                                    helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                } else {
                                    helper.setText(R.id.btn_commit2, "逾时申报");
                                    helper.setVisible(R.id.show_op,true);
                                    helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                }
                            }
                            helper.addOnClickListener(R.id.btn_commit2);
                        }else{

                            helper.setGone(R.id.btn_commit3,false);
                            if(StringToLeng(item.getClaimFilingEndTime()) >nowtime)
                            {
                                helper.setVisible(R.id.fragment_zq_zq_apply_base_item,true);
                                helper.setVisible(R.id.show_op,false);
                                helper.addOnClickListener(R.id.show_op);
                                helper.setVisible(R.id.time_base_2,true);
                                helper.setText(R.id.tv_msg2,Utils.timeStamp2Date(StringToLeng(item.getClaimFilingStartTime())*1000,"yyyy-MM-dd HH:mm") +"-"
                                        +Utils.timeStamp2Date(StringToLeng(item.getClaimFilingEndTime())*1000,"yyyy-MM-dd HH:mm") );

                                long diffTime =StringToLeng(item.getClaimFilingEndTime())-nowtime;
                                diffTime  = diffTime*1000;
                                long nd = 1000 * 24 * 60 * 60;// 一天的毫秒数
                                long nh = 1000 * 60 * 60;// 一小时的毫秒数
                                long nm = 1000 * 60;// 一分钟的毫秒数
                                long ns = 1000;// 一秒钟的毫秒数
                                long day = diffTime / nd;// 计算差多少天
                                long hour = diffTime % nd / nh;// 计算差多少小时
                                long min = diffTime % nd % nh / nm;// 计算差多少分钟
                                long sec = diffTime % nd % nh % nm / ns;// 计算差多少秒
                                // 输出结果
                                helper.setText(R.id.tv_msg3_1, "距离申报截止日还有");
                                String strtime = "" + Math.abs(day) + "天" + Math.abs(hour) + "小时" + Math.abs(min)
                                        + "分钟,";
                                helper.setVisible(R.id.btn_commit2,true);
                                helper.setVisible(R.id.show_op,true);
                                helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                helper.setText(R.id.tv_msg3,strtime);
                                helper.setTextColor(R.id.tv_msg3, getResources().getColor(R.color.page_top));
                            }else{

                                helper.setVisible(R.id.fragment_zq_zq_apply_base_item,true);
                                helper.setVisible(R.id.show_op,false);
                                helper.addOnClickListener(R.id.show_op);
//                                helper.setVisible(R.id.time_base_2,true);

                                String claimFilingEndTime = "";
                                if ("null".equalsIgnoreCase(item.getClaimFilingEndTime())) {
                                    claimFilingEndTime = "待定";
                                    helper.setText(R.id.tv_msg2, Utils.timeStamp2Date(StringToLeng(item.getClaimFilingStartTime()) * 1000, "yyyy-MM-dd HH:mm") + "-"
                                            + claimFilingEndTime);
                                } else {
                                    helper.setText(R.id.tv_msg2, Utils.timeStamp2Date(StringToLeng(item.getClaimFilingStartTime()) * 1000, "yyyy-MM-dd HH:mm") + "-"
                                            + Utils.timeStamp2Date(StringToLeng(item.getClaimFilingEndTime()) * 1000, "yyyy-MM-dd HH:mm"));
                                }


                                 long   diffTime = StringToLeng(item.getClaimFilingEndTime()) - nowtime;

                                diffTime  = diffTime*1000;
                                long nd = 1000 * 24 * 60 * 60;// 一天的毫秒数
                                long nh = 1000 * 60 * 60;// 一小时的毫秒数
                                long nm = 1000 * 60;// 一分钟的毫秒数
                                long ns = 1000;// 一秒钟的毫秒数
                                long day = diffTime / nd;// 计算差多少天
                                long hour = diffTime % nd / nh;// 计算差多少小时
                                long min = diffTime % nd % nh / nm;// 计算差多少分钟
                                long sec = diffTime % nd % nh % nm / ns;// 计算差多少秒
                                // 输出结果

                                String strtime = "" + Math.abs(day) + "天" + Math.abs(hour) + "小时" + Math.abs(min)
                                        + "分钟,";
                                helper.setVisible(R.id.btn_commit2,true);
                                if ("null".equalsIgnoreCase(item.getClaimFilingEndTime())) {

                                    if ("true".equalsIgnoreCase(item.hasCrDecTemp)) {
                                        helper.setText(R.id.btn_commit2, "继续填写申报");
                                        helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                    } else {
                                        helper.setVisible(R.id.show_op,true);
                                        helper.setText(R.id.btn_commit2, "立即申报");
                                        helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                    }

                                } else {
                                    helper.setText(R.id.tv_msg3_1, "您已逾时未申报");
                                    if ("true".equalsIgnoreCase(item.hasCrDecTemp)) {
                                        helper.setText(R.id.btn_commit2, "继续填写申报");
                                        helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                    } else {
                                        helper.setVisible(R.id.show_op,true);
                                        helper.setText(R.id.btn_commit2, "逾时申报");
                                        helper.setBackgroundRes(R.id.btn_commit2, R.drawable.bg_btn_common_orange);
                                    }
                                }
                                helper.addOnClickListener(R.id.btn_commit2);

                                helper.setText(R.id.tv_msg3,strtime);

                            }
                        }
                    }

                    break;
                    default:
//                        helper.addOnClickListener(R.id.btn_commit2);
//
//                        helper.addOnClickListener(R.id.btn_commit);
//                        helper.addOnClickListener(R.id.btn_commit3);
                    break;


            }
        }
    }


    @Override
    public void onResume() {
        super.onResume();
        ProDetailActivity parentActivity = (ProDetailActivity) getActivity();
        parentActivity.showLoading();
        getData();
    }

    public void getData()
    {

        if(BankruptcyApp.tokeninfo == null|| BankruptcyApp.tokeninfo.getToken() == null)
        {
            return;
        }
//        shapeLoadingDialog.setLoadingText("加载中...");
//        shapeLoadingDialog.setCanceledOnTouchOutside(false);
//        shapeLoadingDialog.show();
        OkHttpClient okHttpClient = new OkHttpClient();
//        HashMap<String, String> params = new HashMap<String, String>();
        Random random = new Random();
        String rom = random.nextLong()+"";
        String timestamp =System.currentTimeMillis()+"";
        String userToken = SPUtils.getInstance(Consts.SPNAME).getString("userToken","");
        String userId = SPUtils.getInstance(Consts.SPNAME).getString("userId","");


        RequestBody requestBody = new FormBody.Builder()
                .add("appid","1000000001")
                .add("nonce",rom)
                .add("timestamp", timestamp)

                .add("token", BankruptcyApp.tokeninfo.getToken())
                .add("userToken", userToken)

                .add("creditorId",userId)
                .add("projectId",mProID)
                .add("type","1")

                .build();

        String url = Consts.WEBURL_CRDECDGEN;
        Request request = new Request.Builder()
                .url(url)
                .post(requestBody)
                .build();

        okHttpClient.newCall(request).enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {

//                shapeLoadingDialog.dismiss();


                Boolean subtype = false;
                String str = response.body().string();

                try{


                    JSONObject object = new JSONObject(str);
                    if  (object.optInt("code") == -10004 || (object.optInt("code") == -10003))
                    {

                        getActivity().runOnUiThread(new Runnable() {

                            @Override
                            public void run() {
//                                LoginNoticeDialog.showPage(object.optString("msg"));
                            }

                        });

                        return;
                    }
                    if(object.optInt("code") == 0)
                    {
                        JSONObject dataobj = object.getJSONObject("data");
                        final ProZQUserZQInfo  proZQUserZQInfo = new ProZQUserZQInfo();
//                        JSONObject groupListobj = dataobj.getJSONObject("groupList");
//                        Iterator<String> it = groupListobj.keys();
                        mData.clear();
                        Gson gson = new Gson();
                        final ZQUserDetailBaseInfo infotmp = gson.fromJson(dataobj.optString("creditorInfoTemp"),ZQUserDetailBaseInfo.class);
                        if(infotmp !=null)
                        {
                            proZQUserZQInfo.itemType = 22;//待验证
                            proZQUserZQInfo.setZqUserDetailBaseInfo(infotmp);

                            mData.add(proZQUserZQInfo);
                        }else {

                            final ZQUserDetailBaseInfo info = gson.fromJson(dataobj.optString("creditorInfo"), ZQUserDetailBaseInfo.class);
                            proZQUserZQInfo.hasClaimTime = dataobj.optString("hasClaimTime");
                            proZQUserZQInfo.itemType = 101;
                            if ("0".equalsIgnoreCase(info.getProcessStatus().getValue())) {
                                proZQUserZQInfo.itemType = 1;//待验证
                                proZQUserZQInfo.setZqUserDetailBaseInfo(info);

                                mData.add(proZQUserZQInfo);
                            } else if ("1".equalsIgnoreCase(info.getProcessStatus().getValue())) {
                                if ("0".equalsIgnoreCase(info.getDataStatus().getValue())) {

                                    if ("7".equalsIgnoreCase(info.getSubStatus().getValue())) {//身份验证不通过
                                        // 修改基础信息 、我的操作记录
                                        proZQUserZQInfo.itemType = 3;
                                    } else  if ("5".equalsIgnoreCase(info.getSubStatus().getValue())) {
                                        proZQUserZQInfo.itemType = 2;//待验证
                                    } else {
                                        proZQUserZQInfo.itemType = 1;//
                                    }


                                } else if ("1".equalsIgnoreCase(info.getDataStatus().getValue())) {
                                    proZQUserZQInfo.itemType = 5;//
                                } else {
//                                if ("2".equalsIgnoreCase(info.get().getValue())){//身份验证拒绝
//                                    //我的操作记录
//                                } else {
//                                    // 修改基础信息 、我的操作记录
//                                }
                                    if ("0".equalsIgnoreCase(info.getIdentityStatus().getValue())) {//待验证
                                        // 我的操作记录
                                        proZQUserZQInfo.itemType = 2;//待验证
                                    } else if ("1".equalsIgnoreCase(info.getIdentityStatus().getValue())) {//身份验证通过
                                        // 我的基础信息 -立即申报\我的操作记录
                                        proZQUserZQInfo.itemType = 4;//
                                    } else if ("2".equalsIgnoreCase(info.getIdentityStatus().getValue())) {//身份验证不通过
                                        // 修改基础信息 、我的操作记录
                                        proZQUserZQInfo.itemType = 3;
                                    } else {
                                        proZQUserZQInfo.itemType = 2;//待验证
                                    }

                                }
                                proZQUserZQInfo.setZqUserDetailBaseInfo(info);

                                mData.add(proZQUserZQInfo);
                            }
                            if ("2".equalsIgnoreCase(info.getProcessStatus().getValue())
                            ) {
                                String strhasClaimTime = dataobj.optString("hasClaimTime");
                                proZQUserZQInfo.setHasClaimTime(strhasClaimTime);

                                String strTime = dataobj.optString("claimFilingStartTime");
                                boolean showFlag= false;
                                if(strTime !=null &&!"".equalsIgnoreCase(strTime) && !"null".equalsIgnoreCase(strTime))
                                {
                                    long lst_time = StringToLeng(strTime);
                                    long nowtime1 =  System.currentTimeMillis()/1000;
                                    if(lst_time>nowtime1)
                                    {
                                        showFlag=false;
                                    }else{
                                        showFlag =true;
                                    }
                                }
                                if ("true".equalsIgnoreCase(proZQUserZQInfo.getHasClaimTime()) && showFlag) {
                                    JSONObject jsongeneral = dataobj.getJSONObject("general");
                                    JSONObject jsondecMoney = jsongeneral.getJSONObject("decMoney");
                                    JSONObject jsonreviewMoney = jsongeneral.getJSONObject("reviewMoney");
                                    proZQUserZQInfo.setKindTaxMoney(jsondecMoney.optString("kindTaxMoney"));
                                    proZQUserZQInfo.setKindGuaranteeMoney(jsondecMoney.optString("kindGuaranteeMoney"));
                                    proZQUserZQInfo.setKindOtherMoney(jsondecMoney.optString("kindOtherMoney"));
                                    proZQUserZQInfo.setKindOrdinaryMoney(jsondecMoney.optString("kindOrdinaryMoney"));

                                    proZQUserZQInfo.setConfirmedMoney(jsonreviewMoney.optString("confirmedMoney"));
                                    proZQUserZQInfo.setDisconfirmationMoney(jsonreviewMoney.optString("disconfirmationMoney"));
                                    proZQUserZQInfo.setUndeterminedMoney(jsonreviewMoney.optString("undeterminedMoney"));


                                    proZQUserZQInfo.itemType = 0;
                                    proZQUserZQInfo.setZqUserDetailBaseInfo(info);

                                    mData.add(proZQUserZQInfo);
                                }
                                ProZQUserZQInfo proZQUserZQInfo2 = new ProZQUserZQInfo();
                                proZQUserZQInfo2.setZqUserDetailBaseInfo(info);
                                proZQUserZQInfo2.setClaimFilingStartTime(dataobj.optString("claimFilingStartTime"));
                                proZQUserZQInfo2.setClaimFilingEndTime(dataobj.optString("claimFilingEndTime"));
                                proZQUserZQInfo2.setHasCrDecTemp(dataobj.optString("hasCrDecTemp"));
                                proZQUserZQInfo2.itemType = 8;
                                proZQUserZQInfo2.setZqUserDetailBaseInfo(info);


                                mData.add(proZQUserZQInfo2);
                            } else if ("3".equalsIgnoreCase(info.getProcessStatus().getValue()) || "4".equalsIgnoreCase(info.getProcessStatus().getValue()) || "5".equalsIgnoreCase(info.getProcessStatus().getValue())) {
                                //获取5.18获取申报信息
                                String strTime = dataobj.optString("claimFilingStartTime");
                                boolean showFlag= false;
                                if(strTime !=null &&!"".equalsIgnoreCase(strTime) && !"null".equalsIgnoreCase(strTime))
                                {
                                    long lst_time = StringToLeng(strTime);
                                    long nowtime1 =  System.currentTimeMillis()/1000;
                                    if(lst_time>nowtime1)
                                    {
                                        showFlag=false;
                                    }else{
                                        showFlag =true;
                                    }
                                }
                                if ("true".equalsIgnoreCase(proZQUserZQInfo.getHasClaimTime())&&showFlag) {
                                    JSONObject jsongeneral = dataobj.getJSONObject("general");
                                    JSONObject jsondecMoney = jsongeneral.getJSONObject("decMoney");
                                    JSONObject jsonreviewMoney = jsongeneral.getJSONObject("reviewMoney");
                                    proZQUserZQInfo.setKindTaxMoney(jsondecMoney.optString("kindTaxMoney"));
                                    proZQUserZQInfo.setKindGuaranteeMoney(jsondecMoney.optString("kindGuaranteeMoney"));
                                    proZQUserZQInfo.setKindOtherMoney(jsondecMoney.optString("kindOtherMoney"));
                                    proZQUserZQInfo.setKindOrdinaryMoney(jsondecMoney.optString("kindOrdinaryMoney"));

                                    proZQUserZQInfo.setConfirmedMoney(jsonreviewMoney.optString("confirmedMoney"));
                                    proZQUserZQInfo.setDisconfirmationMoney(jsonreviewMoney.optString("disconfirmationMoney"));
                                    proZQUserZQInfo.setUndeterminedMoney(jsonreviewMoney.optString("undeterminedMoney"));


                                    proZQUserZQInfo.itemType = 0;
                                    proZQUserZQInfo.setZqUserDetailBaseInfo(info);

                                    mData.add(proZQUserZQInfo);
                                }
                                ProCrDecInfo proCrDecInfo = gson.fromJson(dataobj.optString("projectCrDec"), ProCrDecInfo.class);
                                ProZQUserZQInfo proZQUserZQInfo2 = new ProZQUserZQInfo();
                                proZQUserZQInfo2.setZqUserDetailBaseInfo(info);
                                proZQUserZQInfo2.setHasCrDecTemp(dataobj.optString("hasCrDecTemp"));
                                proZQUserZQInfo2.itemType = 7;
                                proZQUserZQInfo2.setProjectCrDec(proCrDecInfo);
                                subtype = true;
                                mData.add(proZQUserZQInfo2);
//                            getSubData(3);
                            }
                            proZQUserZQInfo.setZqUserDetailBaseInfo(info);
                        }


                        final Boolean f_subtype = subtype;
//                        zqUserDetailInfo.add(info);
                        getActivity().runOnUiThread(new Runnable() {

                            @Override
                            public void run() {

//                                if(f_subtype)
//                                {
//                                    getSubData(info.getSysUserId());
//                                }else {
                                    mAdapter.notifyDataSetChanged();
//                                }
                            }

                        });

                        str = "";

                    }

                }catch (Exception ex)
                {
                    ex.printStackTrace();
                }
            }
        });
    }

    public void getSubData(String creditorRightsId)
    {

        if(BankruptcyApp.tokeninfo == null|| BankruptcyApp.tokeninfo.getToken() == null)
        {

            return;
        }
//        ll_nodata.setVisibility(View.GONE);
//        shapeLoadingDialog.setLoadingText("加载中...");
//        shapeLoadingDialog.setCanceledOnTouchOutside(false);
//        shapeLoadingDialog.show();
        OkHttpClient okHttpClient = new OkHttpClient();
//        HashMap<String, String> params = new HashMap<String, String>();
        Random random = new Random();
        String rom = random.nextLong()+"";
        String timestamp =System.currentTimeMillis()+"";
        String userToken = SPUtils.getInstance(Consts.SPNAME).getString("userToken","");
        String userId = SPUtils.getInstance(Consts.SPNAME).getString("userId","");

        RequestBody requestBody = new FormBody.Builder()
                .add("appid","1000000001")
                .add("nonce",rom)
                .add("timestamp", timestamp)
                .add("userToken", userToken)
                .add("token", BankruptcyApp.tokeninfo.getToken())
                .add("projectId", mProID)

                .add("creditorRightsId",creditorRightsId)


                .build();

        String url = Consts.WEBURL_CRDECDETAIL;
        Request request = new Request.Builder()
                .url(url)
                .post(requestBody)
                .build();

        okHttpClient.newCall(request).enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
                e.printStackTrace();
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {


                String str = response.body().string();
                try{
                    JSONObject object = new JSONObject(str);
//                    mData.clear();
//                    if(object.optInt("code") == 0)
//                    {
                    if  (object.optInt("code") == -10004 || (object.optInt("code") == -10003))
                    {

                        getActivity().runOnUiThread(new Runnable() {

                            @Override
                            public void run() {
                                LoginNoticeDialog.showPage(object.optString("msg"));
                            }

                        });

                        return;
                    }
                    JSONObject jsondata = object.getJSONObject("data");
                    String typejson = jsondata.optString("type");
//                    ProZQInfo info = new ProZQInfo();
                    List<ProZQInfo> list = new ArrayList<ProZQInfo>();
                    if("notSetTime".equalsIgnoreCase(typejson))
                    {
                        ProZQInfo info = new ProZQInfo();
                        info.setItemType(1);
                        list.add(info);
                    }else if("notSendNotice".equalsIgnoreCase(typejson)){
                        ProZQInfo info = new ProZQInfo();
                        info.setItemType(2);
                        list.add(info);
                    }else{
                        ProZQInfo info = new ProZQInfo();
                        info.setItemType(3);
//                        list.add(info);
//                        try {
//                            JSONObject jsondatatime = object.getJSONObject("time");
//                            if (jsondatatime != null) {
//                                info.setClaimFilingStartTime(jsondatatime.getString("claimFilingStartTime"));
//                                info.setClaimFilingEndTime(jsondatatime.getString("claimFilingEndTime"));
//                            }
//                        }catch (Exception ex)
//                        {
//                            info.setClaimFilingStartTime("0");
//                            info.setClaimFilingEndTime("0");
//                            ex.printStackTrace();
//                        }
                        JSONObject jsongeneral = jsondata.getJSONObject("general");
                        JSONObject jsondecMoney = jsongeneral.getJSONObject("decMoney");
                        JSONObject jsonreviewMoney = jsongeneral.getJSONObject("reviewMoney");
                        info.setKindTaxMoney(jsondecMoney.optString("kindTaxMoney"));
                        info.setKindGuaranteeMoney(jsondecMoney.optString("kindGuaranteeMoney"));
                        info.setKindOtherMoney(jsondecMoney.optString("kindOtherMoney"));
                        info.setKindOrdinaryMoney(jsondecMoney.optString("kindOrdinaryMoney"));

                        info.setConfirmedMoney(jsonreviewMoney.optString("confirmedMoney"));
                        info.setDisconfirmationMoney(jsonreviewMoney.optString("disconfirmationMoney"));
                        info.setUndeterminedMoney(jsonreviewMoney.optString("undeterminedMoney"));

                        list.add(info);

                        ProZQInfo info2 = new ProZQInfo();
                        info2.setItemType(4);
                        try {
                            JSONObject jsondatatime = object.getJSONObject("time");
                            if (jsondatatime != null) {
                                info2.setClaimFilingStartTime(jsondatatime.getString("claimFilingStartTime"));
                                info2.setClaimFilingEndTime(jsondatatime.getString("claimFilingEndTime"));
                            }
                        }catch (Exception ex)
                        {
                            info2.setClaimFilingStartTime("0");
                            info2.setClaimFilingEndTime("0");
                            ex.printStackTrace();
                        }
                        list.add(info2);


                    }


//                    mData.clear();
//                    mData.addAll(list);
//
//
//
//
//                    if(mData.size()>0)
//                    {
//
//                        getActivity().runOnUiThread(new Runnable() {
//
//                            @Override
//                            public void run() {
//                                //更新UI
//                                getSubData();
//
//                            }
//
//                        });
//                    }else{
//                        getActivity().runOnUiThread(new Runnable() {
//
//                            @Override
//                            public void run() {
//                                //更新UI
////                                ll_nodata.setVisibility(View.VISIBLE);
////                                mDataRv.setVisibility(View.GONE);
//                            }
//
//                        });
//                    }
//                    getActivity().runOnUiThread(new Runnable() {
//
//                        @Override
//                        public void run() {
//                            //更新UI
//                            mAdapter.notifyDataSetChanged();
//
//                        }
//
//                    });

                }catch (Exception ex)
                {
                    ex.printStackTrace();
                }
            }
        });
    }




    public void saveData()
    {



        String strStime = "";
        String strEtime = "";


        strStime = Utils.Date2timeStamp(strStime,"yyyy-MM-dd HH:mm");
        strEtime = Utils.Date2timeStamp(strEtime,"yyyy-MM-dd HH:mm");


        if(BankruptcyApp.tokeninfo == null|| BankruptcyApp.tokeninfo.getToken() == null)
        {
//            getToken();
            return;
        }
        shapeLoadingDialog.setLoadingText("提交信息中...");
        shapeLoadingDialog.setCanceledOnTouchOutside(false);
        shapeLoadingDialog.show();

        OkHttpClient okHttpClient = new OkHttpClient();
        HashMap<String, String> params = new HashMap<String, String>();
        Random random = new Random();
        String rom = random.nextLong()+"";
        String timestamp =System.currentTimeMillis()+"";

        String str_switch_show = "";


        String sign = SignUtil.createSign(Consts.APPKEY,params);
        String userToken = SPUtils.getInstance(Consts.SPNAME).getString("userToken","");

        RequestBody requestBody = new FormBody.Builder()
                .add("appid","1000000001")
                .add("nonce",rom)
                .add("timestamp", timestamp)
                .add("token", BankruptcyApp.tokeninfo.getToken())
                .add("userToken", userToken)

                .add("sms", "true")
                .add("msg", "true")
                .add("projectId", mProID)



                .build();

        String url = Consts.WEBURL_SENDDECLARANOTICE;

        Request request = new Request.Builder()
                .url(url)
                .post(requestBody)
                .build();

        okHttpClient.newCall(request).enqueue(new Callback() {
            @Override
            public void onFailure(Call call, IOException e) {
//                Log.d(TAG, "onFailure: " + e.getMessage());
                shapeLoadingDialog.dismiss();
            }

            @Override
            public void onResponse(Call call, Response response) throws IOException {
//                Log.d(TAG, response.protocol() + " " +response.code() + " " + response.message());
                Headers headers = response.headers();


                shapeLoadingDialog.dismiss();
                String str = response.body().string();
                try{
                    JSONObject object = new JSONObject(str);
                    if  (object.optInt("code") == -10004 || (object.optInt("code") == -10003))
                    {

                        getActivity().runOnUiThread(new Runnable() {

                            @Override
                            public void run() {
                                LoginNoticeDialog.showPage(object.optString("msg"));
                            }

                        });

                        return;
                    }
                    if(object.optInt("code") == 0)
                    {

                        getActivity().runOnUiThread(new Runnable() {

                            @Override
                            public void run() {
                                //更新UI
                                Toast.makeText(getActivity(),
                                        "提交成功",Toast.LENGTH_SHORT).show();
                                EventBus.getDefault().post(Consts.EVENTFLOW);
//                                finish();

                            }

                        });
                    }else{
                        getActivity().runOnUiThread(new Runnable() {

                            @Override
                            public void run() {
                                //更新UI
                                Toast.makeText(getActivity(),
                                        "提交失败",Toast.LENGTH_SHORT).show();


                            }

                        });
                    }

                    str = "";
                }catch (Exception ex)
                {

                    ex.printStackTrace();
                }
            }
        });


    }


    private String hideMidText(String text) {
        String tmp = "";
        if(text == null)
        {
            return "";
        }
        if (text.length() > 10) {
            tmp = text.substring(0, 6) + "******" + text.substring(text.length() - 4, text.length());

        } else {
            tmp = text;
        }
        return tmp;
    }
}
